@unikue/ts-lang-utils
    Preparing search index...

    Function isHttp

    • Checks whether the given url started with 'http://', case insensitive

      Parameters

      • Optionalurl: string | null

        The url to test

      Returns boolean

      true if the url started with 'http://', otherwise false

      David Hsing

      isHttp('http://example.com');     // true
      isHttp('HTTP://EXAMPLE.COM'); // true
      isHttp('https://example.com'); // false
      isHttp('ftp://example.com'); // false
      isHttp(undefined); // false
      isHttp(null); // false