本Oreilly.JavaScript.The.Good.Partsには、次のようなコードがあります。
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)));
};
});
プライベート変数の代わりに Array.prototype.slice を直接使用しないのはなぜだろうか、ありがとう。