main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
518 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 | var $ = require('../internals/export');
|
---|
| 3 | var from = require('../internals/array-from');
|
---|
| 4 | var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
|
---|
| 5 |
|
---|
| 6 | var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
|
---|
| 7 | // eslint-disable-next-line es/no-array-from -- required for testing
|
---|
| 8 | Array.from(iterable);
|
---|
| 9 | });
|
---|
| 10 |
|
---|
| 11 | // `Array.from` method
|
---|
| 12 | // https://tc39.es/ecma262/#sec-array.from
|
---|
| 13 | $({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
---|
| 14 | from: from
|
---|
| 15 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.