• Checks if a given string is a valid URL.

    Example

    isUrl("https://www.typescriptlang.org/")
    // => true

    isUrl("20531316728/posts/10154009990506729/")
    // => false

    Parameters

    • url: string

      The string to check if it's a valid URL.

    Returns boolean

    true if the string is a valid URL, false otherwise.

Generated using TypeDoc v0.24.7