17 lines
485 B
Plaintext
17 lines
485 B
Plaintext
=== tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts ===
|
|
const [[k1, v1], [k2, v2]] = new Map([["", true], ["hello", true]])
|
|
>k1 : string
|
|
>v1 : boolean
|
|
>k2 : string
|
|
>v2 : boolean
|
|
>new Map([["", true], ["hello", true]]) : Map<string, boolean>
|
|
>Map : MapConstructor
|
|
>[["", true], ["hello", true]] : [string, boolean][]
|
|
>["", true] : [string, boolean]
|
|
>"" : string
|
|
>true : boolean
|
|
>["hello", true] : [string, boolean]
|
|
>"hello" : string
|
|
>true : boolean
|
|
|