JS Built-ins
WeakSethasbeginner

WeakSet.prototype.has() β€” non-added object

πŸ“– Usage Example
const ws = new WeakSet()
const o = {}
ws.has(o)  // β†’ false

has() returns false for objects not added to the WeakSet.

WeakSet has() Missing

ws.has(obj) returns false for an object that was never added.

Challenge: Verify has() returns false.

πŸ’‘ Hints (1)
  • β€’ Object identity (reference), not content, is used for lookup.