Javascript check arguments for zero value
<p>I would like accomplish the following (using Chrome - but I'd like it to be cross-browser supported):</p>

<pre><code>// check all arguments, and make sure they aren't zero

function zeroCheck(arg1,arg2) {
    var i, argsLen = arguments.length;
    for (i = 0; i &lt;= argsLen; i += 1) {
        if (arguments[i] === 0) {
            // This is where it doesn't behave as I expected
            arguments[i] = 1; // make arg1 = 1
        }
    }
    console.log(arg1); // arg1 = 0
}

zeroCheck(0,2);
</code></pre>

<p>I was expecting arg1 to be equal to 1, but it is still equal to 0.</p>
