JS Built-ins
WeakMapintermediate

WeakMap β€” iterable constructor

πŸ“– Usage Example
const wm = new WeakMap()
typeof wm  // β†’ 'object'

WeakMap instances are objects with no size property or iteration methods.

WeakMap from Entries

You can initialize a WeakMap with [[key, value]] pairs.

Challenge: Verify initialization with entries.

πŸ’‘ Hints (1)
  • β€’ Pass an iterable of [key, value] pairs to the constructor.