Options
All
  • Public
  • Public/Protected
  • All
Menu

The URLSearchParams class as specified by WHATWG

see

URLSearchParams on MDN

Hierarchy

  • URLSearchParams

Index

Constructors

constructor

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

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

    Returns URLSearchParams

Properties

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: "URLSearchParams"

Methods

[Symbol.iterator]

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

append

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

    • name: string
    • value: string

    Returns void

delete

  • delete(name: string): void
  • Parameters

    • name: string

    Returns void

entries

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

forEach

  • forEach<THIS_ARG>(callback: (value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: THIS_ARG): void
  • Type parameters

    • THIS_ARG = void

    Parameters

    • callback: (value: string, name: string, searchParams: URLSearchParams) => void
    • Optional thisArg: THIS_ARG

    Returns void

get

  • get(name: string): string
  • Parameters

    • name: string

    Returns string

getAll

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

    • name: string

    Returns string[]

has

  • has(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

keys

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

set

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

    • name: string
    • value: string

    Returns void

sort

  • sort(): void
  • Returns void

values

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

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method

Generated using TypeDoc