diff options
Diffstat (limited to 'node_modules/core-js/modules/es.array.from.js')
| -rw-r--r-- | node_modules/core-js/modules/es.array.from.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/es.array.from.js b/node_modules/core-js/modules/es.array.from.js new file mode 100644 index 0000000..5c21cbc --- /dev/null +++ b/node_modules/core-js/modules/es.array.from.js @@ -0,0 +1,13 @@ +var $ = require('../internals/export'); +var from = require('../internals/array-from'); +var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration'); + +var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) { + Array.from(iterable); +}); + +// `Array.from` method +// https://tc39.github.io/ecma262/#sec-array.from +$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, { + from: from +}); |
