In the code sample below, how are arguments a legitimate
argument to Array.slice?
Function.protot ype.bind = function(){
var fn = this, args = Array.prototype .slice.call(arg uments), object =
args.shift();
return function(){
return fn.apply(object ,
args.concat(Arr ay.prototype.sl ice.call(argume nts)));
};
};
var myObject = {};
function myFunction(){
return this == myObject;
}
myFunction.bind (myObject)();
argument to Array.slice?
Function.protot ype.bind = function(){
var fn = this, args = Array.prototype .slice.call(arg uments), object =
args.shift();
return function(){
return fn.apply(object ,
args.concat(Arr ay.prototype.sl ice.call(argume nts)));
};
};
var myObject = {};
function myFunction(){
return this == myObject;
}
myFunction.bind (myObject)();
Comment