Comment Comment by simplify For representing `if` statements in JavaScript, what was the reasoning for using a function over a ternary? parent simplify 11 years ago