Estoy leyendo el libro Javascript: The Good Parts. Y estoy confundido por el siguiente código.¿Por qué apply() aquí solo toma un argumento en lugar de dos?
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)));
};
});
¿Dónde está el null
en slice.apply(arguments)
?