from.js 304 B

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