es.set.constructor.js 350 B

123456789
  1. 'use strict';
  2. var collection = require('../internals/collection');
  3. var collectionStrong = require('../internals/collection-strong');
  4. // `Set` constructor
  5. // https://tc39.es/ecma262/#sec-set-objects
  6. collection('Set', function (init) {
  7. return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
  8. }, collectionStrong);