source: trip-planner-front/node_modules/core-js/modules/es.array.from.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 504 bytes
Line 
1var $ = require('../internals/export');
2var from = require('../internals/array-from');
3var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
4
5var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
6 // eslint-disable-next-line es/no-array-from -- required for testing
7 Array.from(iterable);
8});
9
10// `Array.from` method
11// https://tc39.es/ecma262/#sec-array.from
12$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
13 from: from
14});
Note: See TracBrowser for help on using the repository browser.