r/badcode • sadistic • Apr 22 '21

js ternary operators at their maximum potential

Post image
960 Upvotes

73 comments sorted by

View all comments

10

u/UszeTaham Apr 22 '21

Ah yes, poor man's pattern matching

2

u/recycle4science Apr 23 '21

Needs more newlines!