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