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

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

initial commit

  • Property mode set to 100644
File size: 406 bytes
Line 
1var arrayLikeToArray = require("./arrayLikeToArray.js");
2
3function _maybeArrayLike(next, arr, i) {
4 if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
5 var len = arr.length;
6 return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
7 }
8
9 return next(arr, i);
10}
11
12module.exports = _maybeArrayLike;
13module.exports["default"] = module.exports, module.exports.__esModule = true;
Note: See TracBrowser for help on using the repository browser.