/node_modules/babel-polyfill/node_modules/core-js/library/fn/weak-map/from.js

https://bitbucket.org/worklabschd/bingle_customer2 · JavaScript · 8 lines · 8 code · 0 blank · 0 comment · 0 complexity · 178672fa4c6728d59188db80db41edfd MD5 · raw file

  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. };