Options
All
  • Public
  • Public/Protected
  • All
Menu

Class URLSearchParams

The URLSearchParams class as specified by WHATWG

Hierarchy

  • URLSearchParams

Constructors

  • new URLSearchParams(init?: string | readonly readonly [string, string][] | Iterable<readonly [string, string]> | object): URLSearchParams
  • Parameters

    • Optional init: string | readonly readonly [string, string][] | Iterable<readonly [string, string]> | object

    Returns URLSearchParams

Properties

[toStringTag]: "URLSearchParams"

Methods

  • [iterator](): IterableIterator<[name, value]>
  • Returns IterableIterator<[name, value]>

  • append(name: string, value: string): void
  • Parameters

    • name: string
    • value: string

    Returns void

  • delete(name: string): void
  • Parameters

    • name: string

    Returns void

  • entries(): IterableIterator<[name, value]>
  • Returns IterableIterator<[name, value]>

  • forEach<THIS_ARG>(callback: function, thisArg?: THIS_ARG): void
  • Type parameters

    • THIS_ARG

    Parameters

    • callback: function
    • Optional thisArg: THIS_ARG

    Returns void

  • get(name: string): null | string
  • Parameters

    • name: string

    Returns null | string

  • getAll(name: string): string[]
  • Parameters

    • name: string

    Returns string[]

  • has(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

  • keys(): IterableIterator<string>
  • Returns IterableIterator<string>

  • set(name: string, value: string): void
  • Parameters

    • name: string
    • value: string

    Returns void

  • sort(): void
  • Returns void

  • values(): IterableIterator<string>
  • Returns IterableIterator<string>

Generated using TypeDoc