3 ms·
This is coming in the next version of EcmaScript. See Rest Parameters: http://wiki.ecmascript.org/doku.php?id=harmony:rest_parameters http://wiki.ecmascript.org
by bmuon 14y ago
This is coming in the next version of EcmaScript. See Rest Parameters: http://wiki.ecmascript.org/doku.php?id=harmony:rest_parameters http://wiki.ecmascript.org/doku.php?id=harmony:rest_paramete...
If you're adventurous or just OK with the idea of using transpilers/precompilers (which you would be if you like CoffeeScript), you can use rest parameters with Traceur [1] or TypeScript [2].
[1] http://code.google.com/p/traceur-compiler/ http://code.google.com/p/traceur-compiler/
[2] http://www.typescriptlang.org/ http://www.typescriptlang.org/