Hacker News new | ask | show | jobs
by schwartzworld 1285 days ago
I think this pattern is so useful that I've been working on a library to use it for more types of things. https://www.npmjs.com/package/schtate

This includes a state monad that allows you to apply .map just like an array and a maybe monad that let's you do the same on values that might be nullish.

1 comments

Keep us posted