News for hackers. Stuff that matters.
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*/})()]
Re:Pipe Operator (|>) For JavaScript by wruza on Saturday January 21, 2023 @01:28AM (#34464371)
More like this:

  [...(cond ? [expr1] : [])]