7 lines
185 B
TypeScript
7 lines
185 B
TypeScript
//// [restElementWithAssignmentPattern1.ts]
|
|
var a: string, b: number;
|
|
[...[a, b = 0]] = ["", 1];
|
|
|
|
//// [restElementWithAssignmentPattern1.js]
|
|
var a, b;
|
|
[...[a, b = 0]] = ["", 1];
|