Index

URLSearchParams

MMO.core · 1 symbol · generated 30 Sep 2026

class

URLSearchParams

URLSearchParams.js:10

Extension of URLSearchParams that can handle arrays of the form xxx[yyy][zzz] or xxx[]

class MMO.core.URLSearchParams extends URLSearchParams
Namespace
MMO.core
Extends
URLSearchParams
You can set object parameters (they will be encoded correctly) To get back an object/array parameter use `getAll(xxx)`

Index

constructor(options)
fillMap(key, map)Collect every parameter belonging to a name (key, key[], key[a][b]) into a Map.
has(key, value)Override: the base name of an object or array parameter counts as present, so has('a') is true when only a[b] was set.
getAll(key)Override: read a structured parameter back as a plain object or array.
updateURL()Write the parameters back into the URL this instance was built from, if any.
set(key, value, deleteObj)Override: an object or array value is expanded into bracketed parameters.
append(name, value)Override: keeps the URL in sync.
delete(name, value)Override: keeps the URL in sync.
deleteAll(key)Delete a parameter and every array/object parameter derived from it (key, key[], key[a][b]).
sort()Override: keeps the URL in sync.

Methods10

has(key, value)

URLSearchParams.js:65

Override: the base name of an object or array parameter counts as present, so has('a') is true when only a[b] was set.

has(key, value)
keystring
valuestring=only report the parameter when it carries this exact value
returnsboolean

getAll(key)

URLSearchParams.js:81

Override: read a structured parameter back as a plain object or array.

getAll(key)
keystring
returnsObject | Array

updateURL()

URLSearchParams.js:89

Write the parameters back into the URL this instance was built from, if any.

updateURL()Every mutating method calls it, so the URL never goes stale.

set(key, value, deleteObj)

URLSearchParams.js:99

Override: an object or array value is expanded into bracketed parameters.

set(key, value, deleteObj = true)
keystring
value*undefined removes the parameter and everything under it
deleteObj = trueboolean[internal] clear the previous value first; false while recursing

append(name, value)

URLSearchParams.js:118

Override: keeps the URL in sync. MMO.core.URLSearchParams#updateURL

append(name, value)
namestring
value*

delete(name, value)

URLSearchParams.js:129

Override: keeps the URL in sync. Only the EXACT name is removed;

delete(name, value)
See
MMO.core.URLSearchParams#deleteAll for a structured parameter.
namestring
valuestring=only remove the entry carrying this value

deleteAll(key)

URLSearchParams.js:139

Delete a parameter and every array/object parameter derived from it (key, key[], key[a][b]).

deleteAll(key)A parameter that merely starts with the same characters (`keyword` for `key`) is left alone.
keystring