Skip to main content
Module

x/deno/js/url_search_params.ts>URLSearchParams#[Symbol.iterator]

A modern runtime for JavaScript and TypeScript.
Go to Latest
method URLSearchParams.prototype.[Symbol.iterator]
import { URLSearchParams } from "https://deno.land/x/deno@v0.1.12/js/url_search_params.ts";

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

  for (const [key, value] of searchParams[Symbol.iterator]()) {
    console.log(key, value);
  }

Returns

Iterable<[string, string]>