Using Option Monad with JavaScript

Option monads comes from functional programming world, it helps to resolve if object is null or it has data. By having such semantic we can do some declarative APIs like forEahc/Map/Fold... etc. It makes our program more readable.

I have creates open source project for node.js users :

scala-like-option.

However when I published it a lot of develoeprs told me that this is not idiomatic way to handle nulls in Javascript in declarative manner.