iterableToArrayLimitLoose.js 463 B

12345678910111213141516
  1. function _iterableToArrayLimitLoose(arr, i) {
  2. var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
  3. if (_i == null) return;
  4. var _arr = [];
  5. for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) {
  6. _arr.push(_step.value);
  7. if (i && _arr.length === i) break;
  8. }
  9. return _arr;
  10. }
  11. module.exports = _iterableToArrayLimitLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;