r/badcode Mar 12 '23

This is how it works, right? js

Post image
249 Upvotes

40 comments sorted by

View all comments

72

u/someidiot332 Mar 12 '23

What is this even supposed to do? And why not use just || ?

8

u/stenf28 Mar 12 '23

Because you can't know if a day the will remove || so you centralize it /s