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

    Function isHttps

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

      Parameters

      • Optionalurl: string | null

        The url to test

      Returns boolean

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

      David Hsing

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