source: trip-planner-front/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js@ bdd6491

Last change on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 304 bytes
Line 
1import arrayLikeToArray from "./arrayLikeToArray.js";
2export default function _maybeArrayLike(next, arr, i) {
3 if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
4 var len = arr.length;
5 return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
6 }
7
8 return next(arr, i);
9}
Note: See TracBrowser for help on using the repository browser.