map-helpers.js 426 B

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