WeakMap

Download javascript eBook

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

Stats

108 Contributors: 2
Sunday, April 23, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook