r/badcode • sadistic • Apr 22 '21

js ternary operators at their maximum potential

Post image
960 Upvotes

73 comments sorted by

View all comments

5

u/Major_Fudgemuffin Apr 23 '21

I asked a coworker to make a change in their PR just yesterday because they had a single level of this (ternary operator feeding into another) on a single line.

OP this picture is my nightmare.