Hacker News new | ask | show | jobs
by sli 1607 days ago
Iterating over an enum in TypeScript always felt like code smell to me because of the filtering code I'd have to write to deal with the bidirectional mapping.