mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
a13a78e3fe
**BREAKING CHANGE:** Breaking changes for `@swc/helpers`. A new major version `0.5.0` is required. **Related issue:** - Closes https://github.com/swc-project/swc/issues/7157
16 lines
419 B
JavaScript
16 lines
419 B
JavaScript
export function _iterable_to_array_limit_loose(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;
|
|
}
|
|
export { _iterable_to_array_limit_loose as _ };
|