Sto leggendo il libro Javascript: The Good Parts. E sono confuso dal seguente codice.Perché apply() qui richiede un solo argomento anziché due?
Function.method('curry', function () {
var slice = Array.prototype.slice,
args = slice.apply(arguments),
that = this;
return function () {
return that.apply(null, args.concat(slice.apply(arguments)));
};
});
Dov'è il null
in slice.apply(arguments)
?