2015-03-26 01:36:47 +01:00
|
|
|
=== tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts ===
|
|
|
|
const [[k1, v1], [k2, v2]] = new Map([["", true], ["hello", true]])
|
2015-04-16 01:44:20 +02:00
|
|
|
>k1 : string
|
|
|
|
>v1 : boolean
|
|
|
|
>k2 : string
|
|
|
|
>v2 : boolean
|
2015-03-26 01:36:47 +01:00
|
|
|
>new Map([["", true], ["hello", true]]) : Map<string, boolean>
|
2015-04-16 01:44:20 +02:00
|
|
|
>Map : MapConstructor
|
2015-03-26 01:36:47 +01:00
|
|
|
>[["", true], ["hello", true]] : [string, boolean][]
|
|
|
|
>["", true] : [string, boolean]
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
|
|
|
>true : boolean
|
2015-03-26 01:36:47 +01:00
|
|
|
>["hello", true] : [string, boolean]
|
2015-04-13 21:36:11 +02:00
|
|
|
>"hello" : string
|
|
|
|
>true : boolean
|
2015-03-26 01:36:47 +01:00
|
|
|
|