Function isUrl

  • Returns a boolean value denoting whether the input string is a valid URL

    Example

    Returns true

    isUrl("https://foo.com");
    

    Example

    Returns false

    isUrl("foo@bar.com");
    

    Parameters

    • str: string

    Returns boolean

Generated using TypeDoc