I noticed something curious earlier today. I can\'t seem to store a reference to the call property of a function, then execute it. Example:
var
This is my favorite code in JavaScript:
var bind = Function.bind;
var call = Function.call;
var bindable = bind.bind(bind);
var callable = bindable(call);
You can use the bindable function to grab a reference to f.bind. Similarly you can use the callable function to grab a reference to f.call as follows:
var log = callable(console.log, console);
Now all you need to do is call the log function like any other function:
log("Hello World!");
That's all folks.