Skip to main content
Version: 3.27.2

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.