TypeScript/tests/cases/compiler/bindingPatternInParameter01.ts

6 lines
104 B
TypeScript
Raw Normal View History

2015-10-27 03:50:43 +01:00
const nestedArray = [[[1, 2]], [[3, 4]]];
nestedArray.forEach(([[a, b]]) => {
console.log(a, b);
});