How to implement optional arguments in Javascript:

http://www.openjs.com/articles/optional_function_arguments.php

How to use ‘arguments’ as a Javascript array:

http://code.google.com/p/doctype/wiki/ArticleArraySlice


Array.prototype.slice.call(arguments, 0);

Advertisements