WeakSet extensions
import { extend } from 'jsmodern';
import {
from,
isWeakSet,
of,
} from 'jsmodern/dist/weak-set.js';
extend({
weakSet: [
from,
isWeakSet,
of,
],
});
console.log([
WeakSet.from,
WeakSet.isWeakSet,
WeakSet.of,
].every(n => 'function' === typeof(n)));
Check out API Reference.
MIT License © Rong Sen Ng