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
URLSearchParams
object.
- : The value of the current entry being processed in the
key
- : The key of the current entry being processed in the
URLSearchParams
object.
- : The key of the current entry being processed in the
searchParams
- : The
URLSearchParams
object theforEach()
was called upon.
- : The
thisArg
optional- : Value to use as
this
when executingcallback
.
- : Value to use as
Return value
None undefined
.