28 lines
717 B
JavaScript
28 lines
717 B
JavaScript
|
function _iterableToArrayLimit(r, l) {
|
||
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || 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) && (a.push(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 };
|