hexo/node_modules/@babel/runtime/helpers/maybeArrayLike.js

9 lines
411 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
var arrayLikeToArray = require("./arrayLikeToArray.js");
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);
}
2023-09-25 15:58:56 +08:00
module.exports = _maybeArrayLike, module.exports.__esModule = true, module.exports["default"] = module.exports;