Checks whether the given url started with 'https://', case insensitive
Optional
The url to test
true if the url started with 'https://', otherwise false
true
false
David Hsing
isHttps('https://example.com'); // trueisHttps('HTTPS://EXAMPLE.COM'); // trueisHttps('http://example.com'); // falseisHttps('ftp://example.com'); // falseisHttps(undefined); // falseisHttps(null); // false Copy
isHttps('https://example.com'); // trueisHttps('HTTPS://EXAMPLE.COM'); // trueisHttps('http://example.com'); // falseisHttps('ftp://example.com'); // falseisHttps(undefined); // falseisHttps(null); // false
Checks whether the given url started with 'https://', case insensitive