URLSearchParams.forEach()
The forEach() method of the
URLSearchParams interface allows iteration through all values contained
in this object via a callback function.
Syntax
forEach(callback)
forEach(callback, thisArg)
Parameters
callback: Function to execute on each element, which is passed the following arguments:
value- : The value of the current entry being processed in the
URLSearchParamsobject.
- : The value of the current entry being processed in the
key- : The key of the current entry being processed in the
URLSearchParamsobject.
- : The key of the current entry being processed in the
searchParams- : The
URLSearchParamsobject theforEach()was called upon.
- : The
thisArgoptional- : Value to use as
thiswhen executingcallback.
- : Value to use as
Return value
None undefined.