I have been programming in JS for about a year, and I swear there was a way to do this:
function a(){
}.bind(this);
or
function a(){
}.apply(this,null);
I can do this:
(function a(){
console.log('b');
}).apply(null);
a(); //but this will throw an error
is there a way to do what I am trying to do? I just want to invoke apply, call or bind on a function without losing scope.