mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
23 lines
698 B
JavaScript
23 lines
698 B
JavaScript
|
var unsupportedIterableToArray = require("./unsupportedIterableToArray");
|
||
|
|
||
|
function _createForOfIteratorHelperLoose(o) {
|
||
|
var i = 0;
|
||
|
|
||
|
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
||
|
if (Array.isArray(o) || (o = unsupportedIterableToArray(o))) return function () {
|
||
|
if (i >= o.length) return {
|
||
|
done: true
|
||
|
};
|
||
|
return {
|
||
|
done: false,
|
||
|
value: o[i++]
|
||
|
};
|
||
|
};
|
||
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||
|
}
|
||
|
|
||
|
i = o[Symbol.iterator]();
|
||
|
return i.next.bind(i);
|
||
|
}
|
||
|
|
||
|
module.exports = _createForOfIteratorHelperLoose;
|