NET-Web-API-w-Angular/my-app/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js

8 lines
303 B
JavaScript
Raw Normal View History

2024-02-08 19:38:41 -05:00
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);
}