method URLSearchParams.has Private URLSearchParams.has(name: string,value?: string,): boolean Returns a boolean value indicating if a given parameter, or parameter and value pair, exists. ```ts searchParams.has('name'); searchParams.has('name', 'value'); ``` Parameters name: string optional value: string Return Type boolean