github-pages-deploy-action/node_modules/@babel/runtime-corejs3/helpers/maybeArrayLike.js

14 lines
386 B
JavaScript
Raw Normal View History

2020-03-22 05:13:25 +08:00
var _Array$isArray = require("../core-js/array/is-array");
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;