const getBaseURL = (url: string) => url.replace(/[?#].*$/, '');
      
      Typescript language logo

      Get base url

      0

      0

      avatar
      Giovanny Gongora
      Codiga's TypeScript Recipes

      Gets the current URL without any parameters or fragment identifiers.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.