main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 16 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | var _Symbol = require("core-js-pure/features/symbol/index.js");
|
---|
2 | var _getIteratorMethod = require("core-js-pure/features/get-iterator-method.js");
|
---|
3 | var _bindInstanceProperty = require("core-js-pure/features/instance/bind.js");
|
---|
4 | var _Array$isArray = require("core-js-pure/features/array/is-array.js");
|
---|
5 | var unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
|
---|
6 | function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
---|
7 | var _context;
|
---|
8 | var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"];
|
---|
9 | if (it) return _bindInstanceProperty(_context = (it = it.call(o)).next).call(_context, it);
|
---|
10 | if (_Array$isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
---|
11 | if (it) o = it;
|
---|
12 | var i = 0;
|
---|
13 | return function () {
|
---|
14 | if (i >= o.length) return {
|
---|
15 | done: true
|
---|
16 | };
|
---|
17 | return {
|
---|
18 | done: false,
|
---|
19 | value: o[i++]
|
---|
20 | };
|
---|
21 | };
|
---|
22 | }
|
---|
23 | throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
---|
24 | }
|
---|
25 | module.exports = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
---|
Note:
See
TracBrowser
for help on using the repository browser.