Skip to content

Instantly share code, notes, and snippets.

@christiantakle
Created November 18, 2013 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiantakle/7537088 to your computer and use it in GitHub Desktop.
Save christiantakle/7537088 to your computer and use it in GitHub Desktop.
Functional approach to bind, call and apply
var bind = Function.prototype.call.bind(Function.prototype.bind);
var call = bind(Function.prototype.call, Function.prototype.call);
var apply = bind(Function.prototype.call, Function.prototype.apply);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment