Interface URLSearchParams

Hierarchy

  • URLSearchParams

Methods

  • Appends a specified key/value pair as a new search parameter.

    Parameters

    • name: string
    • value: string

    Returns void

  • Appends a specified key/value pair as a new search parameter.

    Parameters

    • name: string
    • value: string

    Returns void

  • Deletes the given search parameter, and its associated value, from the list of all search parameters.

    Parameters

    • name: string

    Returns void

  • Deletes the given search parameter, and its associated value, from the list of all search parameters.

    Parameters

    • name: string

    Returns void

  • Returns the first value associated to the given search parameter.

    Parameters

    • name: string

    Returns string

  • Returns the first value associated to the given search parameter.

    Parameters

    • name: string

    Returns string

  • Returns all the values association with a given search parameter.

    Parameters

    • name: string

    Returns string[]

  • Returns all the values association with a given search parameter.

    Parameters

    • name: string

    Returns string[]

  • Returns a Boolean indicating if such a search parameter exists.

    Parameters

    • name: string

    Returns boolean

  • Returns a Boolean indicating if such a search parameter exists.

    Parameters

    • name: string

    Returns boolean

  • Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.

    Parameters

    • name: string
    • value: string

    Returns void

  • Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.

    Parameters

    • name: string
    • value: string

    Returns void

  • Returns void

  • Returns void

  • Returns a string containing a query string suitable for use in a URL. Does not include the question mark.

    Returns string

  • Returns a string containing a query string suitable for use in a URL. Does not include the question mark.

    Returns string

Generated using TypeDoc