Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/ext/url/lib.deno_url.d.ts>URLSearchParams#entries

A modern runtime for JavaScript and TypeScript.
Go to Latest
method URLSearchParams.prototype.entries
import { URLSearchParams } from "https://deno.land/x/deno@v1.28.0/ext/url/lib.deno_url.d.ts";

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);
}

Returns

IterableIterator<[string, string]>