esnext.iterator.as-indexed-pairs.js 357 B

12345678910
  1. 'use strict';
  2. // TODO: Remove from `core-js@4`
  3. var $ = require('../internals/export');
  4. var indexed = require('../internals/iterator-indexed');
  5. // `Iterator.prototype.asIndexedPairs` method
  6. // https://github.com/tc39/proposal-iterator-helpers
  7. $({ target: 'Iterator', name: 'indexed', proto: true, real: true, forced: true }, {
  8. asIndexedPairs: indexed
  9. });