14 lines
367 B
Text
14 lines
367 B
Text
=== tests/cases/compiler/declarationEmitDestructuringArrayPattern5.ts ===
|
|
var [, , z] = [1, 2, 4];
|
|
>z : number
|
|
>[1, 2, 4] : [number, number, number]
|
|
|
|
var [, a, , ] = [3, 4, 5];
|
|
>a : number
|
|
>[3, 4, 5] : [number, number, number]
|
|
|
|
var [, , [, b, ]] = [3,5,[0, 1]];
|
|
>b : number
|
|
>[3,5,[0, 1]] : [number, number, [number, number]]
|
|
>[0, 1] : [number, number]
|
|
|