Function isUrl

  • Check if input is a valid URL

    Parameters

    • input: unknown

      Value to check

    Returns input is string

    true if the input is a valid URL, false otherwise