Skip to main content

Function: validateUrl()

validateUrl(url): boolean

Returns true if the given string is a valid URL, false otherwise. Uses the same semantics as the URL constructor (no throw).

Parameters​

url​

string

Returns​

boolean