from.js 427 B

12345678910111213
  1. 'use strict';
  2. require('../../modules/es.set');
  3. require('../../modules/es.string.iterator');
  4. require('../../modules/esnext.set.from');
  5. require('../../modules/web.dom-collections.iterator');
  6. var path = require('../../internals/path');
  7. var Set = path.Set;
  8. var setFrom = Set.from;
  9. module.exports = function from(source, mapFn, thisArg) {
  10. return setFrom.call(typeof this === 'function' ? this : Set, source, mapFn, thisArg);
  11. };