source: trip-planner-front/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js@ 1ad8e64

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

initial commit

  • Property mode set to 100644
File size: 607 bytes
Line 
1export default function _iterableToArrayLimit(arr, i) {
2 var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3
4 if (_i == null) return;
5 var _arr = [];
6 var _n = true;
7 var _d = false;
8
9 var _s, _e;
10
11 try {
12 for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
13 _arr.push(_s.value);
14
15 if (i && _arr.length === i) break;
16 }
17 } catch (err) {
18 _d = true;
19 _e = err;
20 } finally {
21 try {
22 if (!_n && _i["return"] != null) _i["return"]();
23 } finally {
24 if (_d) throw _e;
25 }
26 }
27
28 return _arr;
29}
Note: See TracBrowser for help on using the repository browser.