mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
14 lines
386 B
JavaScript
14 lines
386 B
JavaScript
|
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;
|