Newer
Older
alert / js / node_modules / @babel / runtime / helpers / esm / iterableToArrayLimitLoose.js
@Réz István Réz István on 18 Nov 2021 354 bytes first commit
export default function _iterableToArrayLimitLoose(arr, i) {
  var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);

  if (_i == null) return;
  var _arr = [];

  for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) {
    _arr.push(_step.value);

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

  return _arr;
}