Пример #1
0
 return $restArg (function (fn, this_) {
                     return _.withArgs (
                         Math.max (0, _.numArgs (fn) - (arguments.length - 2)), fn._ra,
                             bind.apply (this, arguments)) }) })
Пример #2
0
 withSameArgs: function (other, fn) {
                     return _.withArgs (_.numArgs (other), _.restArg (other), fn) } }) })
Пример #3
0
 return $restArg (function (fn) {
                         return _.withArgs (
                             Math.max (0, _.numArgs (fn) - (arguments.length - 1)), fn._ra,
                                 partial.apply (this, arguments)) }) })