7 lines
337 B
TypeScript
7 lines
337 B
TypeScript
//// [iterableArrayPattern29.ts]
|
|
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { }
|
|
takeFirstTwoEntries(...new Map([["", true], ["hello", true]]));
|
|
|
|
//// [iterableArrayPattern29.js]
|
|
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { }
|
|
takeFirstTwoEntries(...new Map([["", true], ["hello", true]]));
|