I saw this question in stackoverflow and seriously did not understand on how does Function.prototype.bind.apply
work?
Use of .apply() with 'new' operator. Is this possible?
function Shan(name){
this.name = name;
}
var s = new (Function.prototype.bind.call(Shan, "shankar"));
The above code returns me an instance of Shan constructor
.