Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
method URLSearchParams.prototype.append

Appends a specified key/value pair as a new search parameter.

let searchParams = new URLSearchParams();
searchParams.append('name', 'first');
searchParams.append('name', 'second');

Parameters

name: string
value: string