aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/features/map/from.js
blob: b7d75f907c464f742ee23fd6fe06b6058594c127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
require('../../modules/es.map');
require('../../modules/es.string.iterator');
require('../../modules/esnext.map.from');
require('../../modules/web.dom-collections.iterator');
var path = require('../../internals/path');

var Map = path.Map;
var mapFrom = Map.from;

module.exports = function from(source, mapFn, thisArg) {
  return mapFrom.call(typeof this === 'function' ? this : Map, source, mapFn, thisArg);
};