0.0.1 • Published 8 years ago

underbind v0.0.1

Weekly downloads
10
License
-
Repository
github
Last release
8 years ago

underbind

Bind JavaScript objects without context

installation

$ npm install underbind

example usage

It works just like bind, but without context parameter

Function.prototype._bind = require('underbind')

function add() { return Array.prototype.reduce.call(arguments, (a,b) => a+b) }

add(1,2,3)
// -> 6

add._bind(1,2)._bind(3)()
// -> 6

license

MIT

0.0.1

8 years ago

0.0.0

8 years ago