This ain’t pretty, but it works:
[
“foo”,
...(cond1 ? [bar] : []),
...(cond2 ? baz : []),
]
---Edit: note to self: read the link before commenting.
[
“foo”,
...(cond1 ? [bar] : []),
...(cond2 ? baz : []),
]
---Edit: note to self: read the link before commenting.
No comments yet.