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