Options
All
  • Public
  • Public/Protected
  • All
Menu

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: function, thisArg?: any): void
  • Iterates over each name-value pair in the query and invokes the given function.

    Parameters

    • callbackfn: function
    • 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
  • Sort all key/value pairs contained in this object in place and return undefined. The sort order is according to Unicode code points of the keys.

    Returns void

toString

  • toString(): string
  • Returns a query string suitable for use in a URL.

    Returns string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc