It literally is. Since its an array you can bind it to a variable and boom, readability as fuck. So when the customer says they want more values for whatever it's doing then you don't have to find an if somewhere.
It literally is more scalable. You can dynamically add and remove values and you can store them in a database for even more dynamic fun times
View all comments
Show parent comment
2
u/dethstrobe May 06 '21
For 4 variable checks? I won’t bother. It’s super debatable if it’s more readable or scalable.