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

18 lines
280 B
TypeScript
Raw Normal View History

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