Stats

108 Contributors: 2 Sunday, April 23, 2017
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

WeakMap

Syntax

  • new WeakMap([iterable]);
  • weakmap.get(key);
  • weakmap.set(key, value);
  • weakmap.has(key);
  • weakmap.delete(key);

Remarks

For uses of WeakMap, see What are the actual uses of ES6 WeakMap?.

Related Examples