parcoursup/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

9 lines
304 B
JavaScript

import arrayLikeToArray from "./arrayLikeToArray.js";
export default 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);
}