mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
377 B
TypeScript
17 lines
377 B
TypeScript
//// [tests/cases/compiler/bindingPatternInParameter01.ts] ////
|
|
|
|
//// [bindingPatternInParameter01.ts]
|
|
const nestedArray = [[[1, 2]], [[3, 4]]];
|
|
|
|
nestedArray.forEach(([[a, b]]) => {
|
|
console.log(a, b);
|
|
});
|
|
|
|
|
|
//// [bindingPatternInParameter01.js]
|
|
"use strict";
|
|
const nestedArray = [[[1, 2]], [[3, 4]]];
|
|
nestedArray.forEach(([[a, b]]) => {
|
|
console.log(a, b);
|
|
});
|