25 lines
300 B
JavaScript
25 lines
300 B
JavaScript
//// [for-of49.ts]
|
|
var k: string, v: boolean;
|
|
var map = new Map([["", true]]);
|
|
for ([k, ...[v]] of map) {
|
|
k;
|
|
v;
|
|
}
|
|
|
|
//// [for-of49.js]
|
|
var k, v;
|
|
var map = new Map([
|
|
[
|
|
"",
|
|
true
|
|
]
|
|
]);
|
|
for ([
|
|
k,
|
|
...[
|
|
v
|
|
]
|
|
] of map) {
|
|
k;
|
|
v;
|
|
}
|