Closed sirisian closed 4 years ago
let [a:uint8, ...[b:uint8]] = [10, 20]; // b is 20
Remember that this needs to support nesting. I don't foresee an issue.
let [a:uint8, ...[...[b:uint8]]] = [10, 20]; // b is 20
https://github.com/sirisian/ecmascript-types#array-rest-destructuring
Remember that this needs to support nesting. I don't foresee an issue.