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

Last change on this file since e29cc2e 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.