How to write more readable JavaScript conditionals | Dark Hacker News