Skip to main content
Version: 3.14.1

URLSearchParams.has()

The has() method of the URLSearchParams interface returns a boolean value that indicates whether a parameter with the specified name exists.

Syntax

has(name)

Parameters

  • name
    • : The name of the parameter to find.

Return value

A boolean value.