Hacker News new | ask | show | jobs
by c22 2606 days ago
I agree, the ternary style is better for this sort of variable assignment situation. Usually if I am using the above pattern I am calling different functions as the result of the conditionals.