Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

esnext.map.from.js 381B

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