UNPKG

504 BJavaScriptView Raw
1import _Symbol from "@babel/runtime-corejs3/core-js/symbol";
2import _getIteratorMethod from "@babel/runtime-corejs3/core-js/get-iterator-method";
3export default function _iterableToArrayLimitLoose(arr, i) {
4 var _i = arr && (typeof _Symbol !== "undefined" && _getIteratorMethod(arr) || arr["@@iterator"]);
5
6 if (_i == null) return;
7 var _arr = [];
8
9 for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) {
10 _arr.push(_step.value);
11
12 if (i && _arr.length === i) break;
13 }
14
15 return _arr;
16}
\No newline at end of file