weak-set-helpers.js 403 B

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