Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface URLSearchParams

Package version

Hierarchy

  • URLSearchParams

Index

Methods

append

  • 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

  • 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

forEach

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

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

    Returns void

get

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

    Parameters

    • name: string

    Returns string | null

getAll

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

    Parameters

    • name: string

    Returns string[]

has

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

    Parameters

    • name: string

    Returns boolean

set

  • 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

  • sort(): void
  • Returns void

Generated using TypeDoc