from.js 330 B

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