• I see the workaround works in node as well. Thanks for the tip!

    $ node
    > function foo() {
    ... for (var i = 0; i < arguments.length; i++) {
    ..... console.log(arguments[i]);
    ..... }
    ... }
    undefined
    > foo(1,2)
    1
    2
    undefined
    > foo(100)
    100
    undefined
    > foo(1,2,3,4,5)
    1
    2
    3
    4
    5
    undefined
    >
    
About

Avatar for jrh @jrh started