Similar to the JavaScript URLSearchParams class, except not an iterator.

Hierarchy

  • URLSearchParams

Constructors

Methods

  • Sets the value associated with a given search parameter to the given value.

    Parameters

    • key: string
    • value: string

    Returns string

  • Deletes the parameter.

    Parameters

    • key: string

    Returns string

  • Returns an array of [key, value] pairs of the parameters.

    Returns EList<string[]>

  • Loops over the parameters.

    Parameters

    • callback: ((value, key?, urlSearchParams?) => void)

      The function to loop with.

        • (value, key?, urlSearchParams?): void
        • Parameters

          Returns void

    Returns void

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

    Parameters

    • key: string

    Returns string

  • Returns all values associated with the given search parameter.

    Parameters

    • key: string

    Returns EList<string>

  • Returns a boolean indicating if the given parameter exists.

    Parameters

    • key: string

    Returns boolean

  • Returns an array of the parameters' keys.

    Returns EList<string>

  • Sets the value associated with a given search parameter to the given value.

    Parameters

    • key: string
    • value: string

    Returns void

  • Internally sorts the parameters.

    Parameters

    • Optional compareFunction: ((entry1, entry2) => number)

      If omitted, params are sorted by keys.

        • (entry1, entry2): number
        • Parameters

          • entry1: string[]
          • entry2: string[]

          Returns number

    Returns void

  • Returns a query string suitable for use in a URL.

    Returns string

  • Returns an array of the parameters' values.

    Returns EList<string>

Generated using TypeDoc