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 IterableIterator<[string, string]>

  • Returns IterableIterator<[string, string]>

  • Parameters

    • callbackfn: ((value: string, key: string, parent: URLSearchParams) => void)
    • Optional thisArg: any

    Returns void

  • Parameters

    • callbackfn: ((value: string, key: string, parent: URLSearchParams) => void)
    • Optional thisArg: any

    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

  • Returns an iterator allowing to go through all keys of the key/value pairs of this search parameter.

    Returns IterableIterator<string>

  • Returns an iterator allowing to go through all keys of the key/value pairs of this search parameter.

    Returns IterableIterator<string>

  • 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

  • Returns an iterator allowing to go through all values of the key/value pairs of this search parameter.

    Returns IterableIterator<string>

  • Returns an iterator allowing to go through all values of the key/value pairs of this search parameter.

    Returns IterableIterator<string>

Generated using TypeDoc