by wruza · 4y ago · 0 comments
[
"foo”,
if (cond1) bar,
if (cond2) ...baz,
]
Pretty sure it was already proposed and rejected, but still. [
“foo”,
...(cond1 ? [bar] : []),
...(cond2 ? baz : []),
]
---Edit: note to self: read the link before commenting.