swc/crates/swc_bundler/tests/fixture/deno-8224/case2/output/entry.ts
2021-11-09 20:42:49 +09:00

18 lines
280 B
TypeScript

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);