Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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>