Skip to main content
method URLSearchParams.prototype.get

Returns the first value associated to the given search parameter.

searchParams.get('name');

Parameters

name: string

Returns

string | null