Pass unknown number of arguments into javascript function
<p>Is there a way to pass an unknown number of arguments like:</p>

<pre><code>var print_names = function(names) {
    foreach(name in names) console.log(name); // something like this
}

print_names('foo', 'bar', 'baz');
</code></pre>

<p>Also, how do I get the number of arguments passed in?</p>
