
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Name some methods of weakMap instances in javascript?
Following are some of the methods available on weakMap instances in javaScript −
1. WeakMap.prototype.delete(key)
Removes any value associated to the key. WeakMap.prototype.has(key) will return false afterwards.
2. WeakMap.prototype.get(key)
Returns the value associated to the key, or undefined if there is none.
3. WeakMap.prototype.has(key)
Returns a Boolean asserting whether a value has been associated to the key in the WeakMap object or not.
4. WeakMap.prototype.set(key, value)
Sets the value for the key in the WeakMap object. Returns the WeakMap object.
- Related Questions & Answers
- Name some of the string methods in javascript?
- WeakMap object in JavaScript.
- What is the use of .clear() method in Javascript weakMap?
- What is the difference between Map and WeakMap in JavaScript?
- Replace multiple instances of text surrounded by specific characters in JavaScript?
- How to share private members among common instances in JavaScript?
- What are some of the commonly used methods of the array class in C#?
- What are some free domain name suggester tools?
- What are class instances in C#?
- Share methods in JavaScript
- JavaScript Object Methods
- Array some() function in JavaScript
- If the element repeats, remove all its instances from array in JavaScript
- JavaScript Array some() function
- How to stop all instances of the process in PowerShell?
Advertisements