After some testing and research I have published my first npm module. Which also lead me to RunKit. What an amazing tool! Check out this embed:

You can also write ‘Notebooks’ in RunKit. This is an excellent way to document and explain your code with usable and editable examples. Think of it as a combination of Hackpad and, two of my favorite tools.

As for the flatMap, I noticed that some of the npm flatMap’s did not seem very modern. Also, speed can vary wildly depending on the implementation. So go get your monad on!