from.js 330 B

123456789
  1. 'use strict';
  2. require('../../modules/es6.weak-set');
  3. require('../../modules/es7.weak-set.from');
  4. var $WeakSet = require('../../modules/_core').WeakSet;
  5. var $from = $WeakSet.from;
  6. module.exports = function from(source, mapFn, thisArg) {
  7. return $from.call(typeof this === 'function' ? this : $WeakSet, source, mapFn, thisArg);
  8. };