method URLSearchParams.get
URLSearchParams.get(name: string): string | null

Returns the first value associated to the given search parameter.

searchParams.get('name');

Parameters

name: string

Return Type

string | null