Checks if a given string is a valid URL.
isUrl("https://www.typescriptlang.org/")// => trueisUrl("20531316728/posts/10154009990506729/")// => false Copy
isUrl("https://www.typescriptlang.org/")// => trueisUrl("20531316728/posts/10154009990506729/")// => false
The string to check if it's a valid URL.
true if the string is a valid URL, false otherwise.
true
Generated using TypeDoc v0.24.7
Checks if a given string is a valid URL.
Example