mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
31 lines
963 B
JavaScript
31 lines
963 B
JavaScript
import _Symbol from "core-js-pure/features/symbol/index.js";
|
|
import _getIteratorMethod from "core-js-pure/features/get-iterator-method.js";
|
|
import _pushInstanceProperty from "core-js-pure/features/instance/push.js";
|
|
function _iterableToArrayLimit(r, l) {
|
|
var t = null == r ? null : "undefined" != typeof _Symbol && _getIteratorMethod(r) || r["@@iterator"];
|
|
if (null != t) {
|
|
var e,
|
|
n,
|
|
i,
|
|
u,
|
|
a = [],
|
|
f = !0,
|
|
o = !1;
|
|
try {
|
|
if (i = (t = t.call(r)).next, 0 === l) {
|
|
if (Object(t) !== t) return;
|
|
f = !1;
|
|
} else for (; !(f = (e = i.call(t)).done) && (_pushInstanceProperty(a).call(a, e.value), a.length !== l); f = !0);
|
|
} catch (r) {
|
|
o = !0, n = r;
|
|
} finally {
|
|
try {
|
|
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
} finally {
|
|
if (o) throw n;
|
|
}
|
|
}
|
|
return a;
|
|
}
|
|
}
|
|
export { _iterableToArrayLimit as default }; |