iterableToArrayLimitLoose.js 319 B

123456789
  1. export default function _iterableToArrayLimitLoose(arr, i) {
  2. var _i = arr && ("undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]);
  3. if (null != _i) {
  4. var _s,
  5. _arr = [];
  6. for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) _arr.push(_s.value);
  7. return _arr;
  8. }
  9. }