Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ditch the returns and semicolons in the latter, then if is your ternary op, just more readable in cases where a and b are expressions more complex than in this example.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: