GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — JavaScript weakSet delete() Method - GeeksforGeeks JavaScript weakSet delete() MethodLast Updated : 11 Jul, 2025 JavaScript weakSet.delete() method is used to delete a specific element from a weakSet object. The WeakSet object lets you store weakly held objects in a collection. Syntax: weakSet.delete(value); Parameters: This method accepts a single parameter value.
Return Values: It returns true if the element has been removed successfully from the weakset object and false if the element has not been removed successfully or the element is not found in the weakset. Below are examples of weakSet.delete() method: Example 1:
Output: false Example 2: Here output is true at first which means that element "B" has been set into the weakSet object successfully and after it is false it says that the element "B" has been deleted successfully from the weakSet object.
Output: true false Supported Browsers:
We have a complete list of Javascript weakSet methods, to check those please go through this JavaScript WeakSet Complete Reference article. Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |