delete() method removes the specified element from a
- The key of the element to remove from the
true if an element in the
WeakMap object has been removed
false if the key is not found in the
if the key is not an object.
var wm = new WeakMap(); wm.set(window, 'foo'); wm.delete(window); // Returns true. Successfully removed. wm.has(window); // Returns false. The window object is no longer in the WeakMap.
The definition of 'WeakMap.prototype.delete' in that specification.
BCD tables only load in the browser