securityos/node_modules/next/dist/compiled/@babel/runtime/helpers/maybeArrayLike.js

13 lines
406 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00: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);
}
module.exports = _maybeArrayLike;
module.exports["default"] = module.exports, module.exports.__esModule = true;