aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/builtin/iterableToArrayLimitLoose.js
blob: c7dfeb30ac8486a7090a55eccb7f2640c4194926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function _iterableToArrayLimitLoose(arr, i) {
  var _arr = [];

  for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
    _arr.push(_step.value);

    if (i && _arr.length === i) break;
  }

  return _arr;
}

module.exports = _iterableToArrayLimitLoose;