rest-params-lazy-parsing.js | 7 function variadic(co, ...values) { function 23 assertEquals(1, variadic.length); 26 assertEquals(90, variadic(2, 1, 2, 3, 4, 5, 6, 7, 8, 9)); 27 assertEquals(74, variadic(2, 1, 2, 3, 4, 5, 6, 7, 9)); 28 assertEquals(110, variadic(2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10));
|