method URLSearchParams.prototype.hashas(name: string): booleanReturns a Boolean that indicates whether a parameter with the specified name exists. Returns a Boolean that indicates whether a parameter with the specified name exists. searchParams.has('name'); Parametersname: stringReturnsboolean