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