mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
32 lines
846 B
JavaScript
32 lines
846 B
JavaScript
function foo(param) {
|
|
var arr, i, _param = (i = 3, function(arr) {
|
|
if (Array.isArray(arr)) return arr;
|
|
}(arr = param) || 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");
|
|
}());
|
|
_param[0], _param[1], _param[2];
|
|
}
|
|
foo([
|
|
"",
|
|
0,
|
|
!1
|
|
]), foo([
|
|
!1,
|
|
0,
|
|
""
|
|
]);
|