Skip to main content
method URLSearchParams.prototype.has

Returns a Boolean that indicates whether a parameter with the specified name exists.

searchParams.has('name');

Parameters

name: string

Returns

boolean