esnext.weak-map.from.js 414 B

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