TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern27.ts

3 lines
152 B
TypeScript
Raw Normal View History

//@target: ES6
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { }
takeFirstTwoEntries(...new Map([["", 0], ["hello", 1]]));