mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
15 lines
287 B
JavaScript
15 lines
287 B
JavaScript
let useState = [{
|
|
some: 42
|
|
}, () => null];
|
|
let {
|
|
0: {
|
|
numeric
|
|
},
|
|
'2': {
|
|
str
|
|
},
|
|
1: setState
|
|
} = useState,
|
|
rest1 = babelHelpers.objectWithoutProperties(useState[0], ["numeric"]),
|
|
rest2 = babelHelpers.objectWithoutProperties(useState['2'], ["str"]);
|