I recently started separating if statements into three separate lines at least because I find it much more readable quickly when I'm rushing to get through code and understand what it means. This is PHP code but I do the same thing in JavaScript.
Image