WeakSet.prototype.has

Returns a boolean indicating whether an element with the specified value exists in a WeakSet object or not.

Syntax

has(value)

Parameters

Return value

true if an element with the specified value exists in the WeakSet object; otherwise false.