Skip to main content
Version: 3.28.0

WeakSet.prototype.delete

The delete() method removes the specified element from a WeakSet object.

Syntax

delete(value)

Parameters

  • value
    • : Required. The object remove from the WeakSet object.

Return value

true if an element in the WeakSet object has been removed successfully. false if the value is not found in the WeakSet or if the value is not an object.