Checks if value is classified as a string primitive and represents a valid URL.
value
string
The value to check.
Returns true if value is a valid URL, else false.
true
false
isUrl('http://example.com')// => trueisUrl('ftp://example.com')// => false Copy
isUrl('http://example.com')// => trueisUrl('ftp://example.com')// => false
Checks if
value
is classified as astring
primitive and represents a valid URL.