weak-map-helpers.js 431 B

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