Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • URLSearchParams

Index

Methods

  • append(name: string, value: string): void
  • Appends a specified key/value pair as a new search parameter.

    Parameters

    • name: string
    • value: string

    Returns void

  • delete(name: string): void
  • Deletes the given search parameter, and its associated value, from the list of all search parameters.

    Parameters

    • name: string

    Returns void

  • get(name: string): string
  • Returns the first value associated to the given search parameter.

    Parameters

    • name: string

    Returns string

  • getAll(name: string): string[]
  • Returns all the values association with a given search parameter.

    Parameters

    • name: string

    Returns string[]

  • has(name: string): boolean
  • Returns a Boolean indicating if such a search parameter exists.

    Parameters

    • name: string

    Returns boolean

  • set(name: string, value: string): 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

  • sort(): void
  • Returns void

  • toString(): 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