set-helpers.js 316 B

1234567891011121314
  1. 'use strict';
  2. var getBuiltIn = require('../internals/get-built-in');
  3. var caller = require('../internals/caller');
  4. var Set = getBuiltIn('Set');
  5. var SetPrototype = Set.prototype;
  6. module.exports = {
  7. Set: Set,
  8. add: caller('add', 1),
  9. has: caller('has', 1),
  10. remove: caller('delete', 1),
  11. proto: SetPrototype
  12. };