Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

weak-map-helpers.js 445B

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