method URLSearchParams.prototype.keysURLSearchParams.prototype.keys(): IterableIterator<string>DeprecatedReturns an ES6 Iterator over the names of each name-value pair. const params = new URLSearchParams('foo=bar&foo=baz'); for (const name of params.keys()) { console.log(name); } // Prints: // foo // foo Return TypeIterableIterator<string>