Skip to main content
method URLSearchParams.prototype.values

Returns an iterator allowing to go through all values contained in this object.

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

Returns

IterableIterator<string>