JavaScriptWeakMap

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?.