Type-safe enums in JavaScript | Hacker News Reader