JavaScript WeakMap delete() methodThe JavaScript WeakMap delete() method is used to remove the specified element from a WeakMap object. SyntaxThe delete() method is represented by the following syntax: JavaScript WeakMap delete() method exampleLet's see an example to determine whether the WeakMap object contains the specified element. Test it NowOutput: Element present before invoking delete() method: true Element present after invoking delete() method: false
Next TopicWeakMap get() Method
|