swc/tests/tsc-references/es6/destructuring/iterableArrayPattern21/input.ts/es5.2.minified/output.js

24 lines
677 B
JavaScript

var arr, i, ref = (i = 2, function(arr) {
if (Array.isArray(arr)) return arr;
}(arr = {
0: "",
1: !0
}) || function(arr, i) {
var _arr = [], _n = !0, _d = !1, _e = void 0;
try {
for(var _s, _i = arr[Symbol.iterator](); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !i || _arr.length !== i); _n = !0);
} catch (err) {
_d = !0, _e = err;
} finally{
try {
_n || null == _i.return || _i.return();
} finally{
if (_d) throw _e;
}
}
return _arr;
}(arr, i) || function() {
throw new TypeError("Invalid attempt to destructure non-iterable instance");
}());
ref[0], ref[1];