esnext.map.from.js 381 B

12345678910
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var MapHelpers = require('../internals/map-helpers');
  4. var createCollectionFrom = require('../internals/collection-from');
  5. // `Map.from` method
  6. // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
  7. $({ target: 'Map', stat: true, forced: true }, {
  8. from: createCollectionFrom(MapHelpers.Map, MapHelpers.set, true)
  9. });