UNPKG

445 BJavaScriptView Raw
1'use strict';
2var uncurryThis = require('../internals/function-uncurry-this');
3
4// eslint-disable-next-line es/no-weak-map -- safe
5var WeakMapPrototype = WeakMap.prototype;
6
7module.exports = {
8 // eslint-disable-next-line es/no-weak-map -- safe
9 WeakMap: WeakMap,
10 set: uncurryThis(WeakMapPrototype.set),
11 get: uncurryThis(WeakMapPrototype.get),
12 has: uncurryThis(WeakMapPrototype.has),
13 remove: uncurryThis(WeakMapPrototype['delete'])
14};