swc/bundler/tests/fixture/deno-8224/case2/output/entry.ts

18 lines
280 B
TypeScript
Raw Normal View History

const showList = (v)=>{
return `[${v.map(showValue).join(', ')}]`;
};
const showValue = (v)=>{
if (v === 0) {
return showList([
v
]);
}
return `${v}`;
};
console.log(showList([
1,
2,
3
]));
console.log(showValue, showList);