JS Built-ins
WeakMapbeginner

WeakMap β€” typeof

πŸ“– Usage Example
const wm = new WeakMap()
const key = {}
wm.set(key, 'data')

Create a WeakMap and use object references as keys.

typeof WeakMap Instance

typeof new WeakMap() is 'object'.

Challenge: Verify the type.

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