• Checks if a given value is a url.

    Parameters

    • value: string
    • Optional schema: string

      if not null, checks if the uri is valid with the given schema.

    Returns boolean

    true if the value is a url, false otherwise.