I JavaScript, has a spread-like operator for optional elements been considered? Something like:
['a', ?'b']
=> ['a', 'b']
['a', ?null]
=> ['a']
I know you can emulate this with a spread + conditional + array literal, but I think this could be way simpler to understand.
@rauschma or any other JavaScript experts
Data, software & management. Husband of Jen. 👶*4. Former teacher. Jeopardy champ*1. Uplift good ideas, support folks, and speak up against harm.