Checks whether an object exists in the WeakSet.
- Category: JS WeakSet Reference — part of the JavaScript Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "WeakSet.prototype.has()" in one sentence, then back it up with a tiny example
// WeakSet.prototype.has() — minimal example
console.log("WeakSet.prototype.has()");Tip
Quick recall: "WeakSet.prototype.has()" — checks whether an object exists in the WeakSet.