bind-fn

1.0.1 • Public • Published

bind-fn

Build Status

Very small module to make binding functions easier.

Eg. instead of repeating the context in

var f = obj.func.bind(obj);

we can just do

var bind = require('bind-fn');
var f = bind(obj, 'func');

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i bind-fn

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • joshwnj