github-pages-deploy-action/node_modules/@babel/runtime/helpers/maybeArrayLike.js
2020-03-21 17:13:25 -04:00

12 lines
325 B
JavaScript

var arrayLikeToArray = require("./arrayLikeToArray");
function _maybeArrayLike(next, arr, i) {
if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
var len = arr.length;
return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
}
return next(arr, i);
}
module.exports = _maybeArrayLike;