Re:Pipe Operator (|>) For JavaScript
by MathMonkeyMan on Friday January 20, 2023 @11:17PM
(#34463836)
Do you mean this?
[cond ? expr1 : expr2]
Or maybe this: [(() => {/*code*/})()]
If the motivation behind these features are React components, javascript clearly lacks proper logic in array (and object) literals, like
Although it seems pretty strange to add syntax only because some specific user interface library together with a specific language extension could benefit from it.