implement myCall, myApply, myBind
Show the code directly.
myCall:
1 | Function.prototype.myCall = function(ctx) { |
myApply:
1 | Function.prototype.myApply = function(ctx) { |
myBind:
1 | Function.prototype.myBind = function(ctx) { |
Show the code directly.
myCall:
1 | Function.prototype.myCall = function(ctx) { |
myApply:
1 | Function.prototype.myApply = function(ctx) { |
myBind:
1 | Function.prototype.myBind = function(ctx) { |