Skip to main content
URLSearchParams.entries - URL - Web documentation
method URLSearchParams.entries
Private
URLSearchParams.entries(): IterableIterator<[string, string]>

Returns an iterator allowing to go through all key/value pairs contained in this object.

const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
for (const [key, value] of params.entries()) {
  console.log(key, value);
}

Return Type

IterableIterator<[string, string]>
Back to top