13 lines
200 B
TypeScript
13 lines
200 B
TypeScript
//// [iterableArrayPattern24.ts]
|
|
var a: string, b: boolean[];
|
|
[a, ...b] = { 0: "", 1: true };
|
|
|
|
//// [iterableArrayPattern24.js]
|
|
var a, b;
|
|
[
|
|
a,
|
|
...b
|
|
] = {
|
|
0: "",
|
|
1: true
|
|
};
|