Bluestep JS Documentation
    Preparing search index...

    Class URLSearchParams

    Similar to the JavaScript URLSearchParams class, except not an iterator.

    Index

    Constructors

    Methods

    • Sets the value associated with a given search parameter to the given value.

      Parameters

      • key: string
      • value: string

      Returns string

    • Deletes the parameter.

      Parameters

      • key: string

      Returns string

    • Returns an array of [key, value] pairs of the parameters.

      Returns EList<string[]>

    • Loops over the parameters.

      Parameters

      • callback: (value: string, key?: string, urlSearchParams?: URLSearchParams) => void

        The function to loop with.

      Returns void

    • Returns the first value associated with the given search parameter.

      Parameters

      • key: string

      Returns string

    • Returns all values associated with the given search parameter.

      Parameters

      • key: string

      Returns EList<string>

    • Returns a boolean indicating if the given parameter exists.

      Parameters

      • key: string

      Returns boolean

    • Returns an array of the parameters' keys.

      Returns EList<string>

    • Sets the value associated with a given search parameter to the given value.

      Parameters

      • key: string
      • value: string

      Returns void

    • Internally sorts the parameters.

      Parameters

      • OptionalcompareFunction: (entry1: string[], entry2: string[]) => number

        If omitted, params are sorted by keys.

      Returns void

    • Returns a query string suitable for use in a URL.

      Returns string

    • Returns an array of the parameters' values.

      Returns EList<string>