Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImmutableURLSearchParams

Identical to the native URLSearchParams interface except that all mutable methods instead return a new ImmutableURLSearchParams.

Hierarchy

  • ImmutableURLSearchParams

Implements

  • {}
  • {}

Index

Constructors

constructor

  • new ImmutableURLSearchParams(init?: string[][] | Record<string, string> | string | URLSearchParams): ImmutableURLSearchParams
  • Parameters

    • Optional init: string[][] | Record<string, string> | string | URLSearchParams

    Returns ImmutableURLSearchParams

Methods

[Symbol.iterator]

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

append

delete

entries

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

forEach

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

    • callbackfn: (value: string, key: string, parent: URLSearchParams) => void
        • (value: string, key: string, parent: URLSearchParams): void
        • Parameters

          • value: string
          • key: string
          • parent: URLSearchParams

          Returns void

    • Optional thisArg: any

    Returns void

get

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

    • name: string

    Returns null | 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

sort

toString

  • toString(): string
  • Returns string

values

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

Generated using TypeDoc