iterableToArrayLimitLoose.js 341 B

123456789101112131415
  1. var _getIterator = require("../core-js/get-iterator");
  2. function _iterableToArrayLimitLoose(arr, i) {
  3. var _arr = [];
  4. for (var _iterator = _getIterator(arr), _step; !(_step = _iterator.next()).done;) {
  5. _arr.push(_step.value);
  6. if (i && _arr.length === i) break;
  7. }
  8. return _arr;
  9. }
  10. module.exports = _iterableToArrayLimitLoose;