diff options
Diffstat (limited to 'node_modules/core-js/library/fn/weak-map/from.js')
| -rw-r--r-- | node_modules/core-js/library/fn/weak-map/from.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/core-js/library/fn/weak-map/from.js b/node_modules/core-js/library/fn/weak-map/from.js new file mode 100644 index 00000000..d91a2fb0 --- /dev/null +++ b/node_modules/core-js/library/fn/weak-map/from.js @@ -0,0 +1,8 @@ +'use strict'; +require('../../modules/es6.weak-map'); +require('../../modules/es7.weak-map.from'); +var $WeakMap = require('../../modules/_core').WeakMap; +var $from = $WeakMap.from; +module.exports = function from(source, mapFn, thisArg) { + return $from.call(typeof this === 'function' ? this : $WeakMap, source, mapFn, thisArg); +}; |
