from.js 461 B

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