Let's say I have this easy id function:
let id = a => a
And now I want to make it a OO-style method, without redefining it, i.e.
let a = {foo:5}
a.id() // {foo:5}
How can I turn the first function into the second? Is there some hack to do this? I tried working with bind, but it didn't seem to work.