function MONAD() {
    return function (value) {
        let monad = Object.create(null)
        monad.bind = function (func) {
            func(value)
        }
        return monad
    }
}

let identity = MONAD()
let monad = identity("Hello world")
monad.bind(console.log)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: