mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +00:00
27 lines
687 B
JavaScript
27 lines
687 B
JavaScript
|
export default 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;
|
||
|
}
|
||
|
}
|