from Hacker News

Type-safe enums in JavaScript

by vivin on 9/18/15, 5:26 PM with 1 comments

  • by vivin on 9/18/15, 5:26 PM

    Comments are appreciated. It seems to work like you would expect, but I'd like to know if there's anything I'm missing in particular, or if the whole approach is just completely wrong.