Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 2.22 KB

README.md

File metadata and controls

73 lines (55 loc) · 2.22 KB

WeakMap


MIT License

WeakMap extensions

Table of contents

Usage

import { extend } from 'jsmodern';
import {
  from,
  isWeakMap,
  of,
} from 'jsmodern/dist/weak-map.js';

extend({
  weakMap: [
    from,
    isWeakMap,
    of,
  ],
});

console.log([
  WeakMap.from,
  WeakMap.isWeakMap,
  WeakMap.of,
].every(n => 'function' === typeof(n)));

Available extensions

Check out API Reference.

License

MIT License © Rong Sen Ng