underbind

0.0.1 • Public • Published

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

/underbind/

    Package Sidebar

    Install

    npm i underbind

    Weekly Downloads

    0

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • mweitzel