Javatpoint Logo
Javatpoint Logo

JavaScript WeakMap delete() method

The JavaScript WeakMap delete() method is used to remove the specified element from a WeakMap object.

Syntax

The delete() method is represented by the following syntax:

JavaScript WeakMap delete() method example

Let's see an example to determine whether the WeakMap object contains the specified element.

Test it Now

Output:

Element present before invoking delete() method: true
Element present after invoking delete() method: false






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA