title: Math.max and Math.min NaN on undefined entry
body: <p>When passing values to the <code>Math.max</code> or <code>Math.min</code> function in JavaScript, they return the highest and lowest values from the input respectively.</p>
  <p>However, if a piece of data that is undefined is entered, e.g.</p>
  <pre><code>Math.max(5,10,undefined);
  </code></pre>
  <p>The result returned is <code>NaN</code>. Is there a simply way to fix this using JS/jQuery?</p>