re: Union Types with Javascript VIEW POST


I'm adding this post on my always favorite list!
I had seen other implementations of algebric data types in Javascript and none was so simple and elegant.

Thank you for the incredible article and high fives for the solution!


Thanks for your keen words, I appreciate it!

When I learned about algebraic data types I checked out a couple of Javascript libraries, but it seemed a bit overkill to use them, so I came up with this implementation.

code of conduct - report abuse