es.array.from.js 440 B

12345678910111213
  1. var $ = require('../internals/export');
  2. var from = require('../internals/array-from');
  3. var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
  4. var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
  5. Array.from(iterable);
  6. });
  7. // `Array.from` method
  8. // https://tc39.github.io/ecma262/#sec-array.from
  9. $({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
  10. from: from
  11. });