JS Built-ins
WeakSetintermediate

WeakSet β€” iterable constructor

πŸ“– Usage Example
new WeakSet() instanceof Object  // β†’ true

WeakSet inherits from Object like all JavaScript objects.

WeakSet from Iterable

You can initialize a WeakSet with an iterable of objects.

Challenge: Verify initialization with values.

πŸ’‘ Hints (1)
  • β€’ Pass an iterable of objects to the constructor.