JS Built-ins
WeakSetbeginner

WeakSet β€” typeof

πŸ“– Usage Example
const obj = {}
const ws = new WeakSet([obj])
ws.has(obj)  // β†’ true

Initialize a WeakSet with an iterable of objects.

typeof WeakSet Instance

typeof new WeakSet() is 'object'.

Challenge: Verify the type.

πŸ’‘ Hints (1)
  • β€’ All WeakSet instances are objects.