Skip to content

Instantly share code, notes, and snippets.

@kl0tl
Created September 20, 2014 12:32
Show Gist options
  • Save kl0tl/e135415a0f9e2efbaab4 to your computer and use it in GitHub Desktop.
Save kl0tl/e135415a0f9e2efbaab4 to your computer and use it in GitHub Desktop.
context.f(...args)
f.call(context, ...args)
Function.prototype.call.bind(f)(context, ...args)
Function.prototype.bind.bind(Function.prototype.call)(f)(context, ...args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment