Passing arguments to a function?
<p>I need to learn how to pass an associative array to a function so that I could do the following within the function:</p>

<pre><code>function someName($argums) {
    if (gettype($argums) != 'array' || 
       !array_key_exists('myOneKey', $argums) ||
       !array_key_exists('myOtherKey', $argums)) {              
           return false;
    } 

    /*do other stuff*/
}
</code></pre>

<p>(That's how I would do it in PHP that I am looking for in JavaScript.)</p>
