Re:Combinator Recipes for Working With Objects in JavaScript
by ufo on Sunday December 16, 2012 @08:58AM
(#4928310)
function.length is certainy a PITA dus to the `arguments` issue that was mentioned. In particular, function.length doesn't work on functions returned by our own combinators, a big no-no!
In the end I adopted a convention where every function that depends on the number of arguments of something else receives that number sa a first parameter:
In the end I adopted a convention where every function that depends on the number of arguments of something else receives that number sa a first parameter: