20 lines
417 B
Text
20 lines
417 B
Text
|
=== tests/cases/conformance/es6/for-ofStatements/for-of40.ts ===
|
||
|
var map = new Map([["", true]]);
|
||
|
>map : Map<string, boolean>
|
||
|
>new Map([["", true]]) : Map<string, boolean>
|
||
|
>Map : MapConstructor
|
||
|
>[["", true]] : [string, boolean][]
|
||
|
>["", true] : [string, boolean]
|
||
|
|
||
|
for (var [k = "", v = false] of map) {
|
||
|
>k : string
|
||
|
>v : boolean
|
||
|
>map : Map<string, boolean>
|
||
|
|
||
|
k;
|
||
|
>k : string
|
||
|
|
||
|
v;
|
||
|
>v : boolean
|
||
|
}
|