const isAbsoluteURL = (str: string) => /^[a-z][a-z0-9+.-]*:/.test(str);
      

      Typescript language logoIs absolute url

      Codiga's TypeScript Recipes

      Checks if the given string is an absolute URL.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.