iterableToArrayLimitLoose.js 504 B

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