azu / idempotent-bind

idempotent bind function library.
MIT License
15 stars 1 forks source link

Add support for function-bind operator e.g. func::bind(this) #1

Closed jayphelps closed 8 years ago

jayphelps commented 8 years ago

The function-bind operator is a proposed addition to JavaScript that is supported by Babel and is a great use case for a utility like this.

func::bind(this);
// is functionally equivalent to
bind.call(func, this);
azu commented 8 years ago

@jayphelps Thanks for pull request! I'll merge feature after you have fixed the comment https://github.com/azu/idempotent-bind/pull/1/files#r64170110

jayphelps commented 8 years ago

@azu Done.

azu commented 8 years ago

Thanks. publish 1.1.0