title: Conditional statement inside a Math.min or a Math.max in JavaScript
body: <p>I want to Math.min a few <strong>Date</strong> values (e.g. var1.getTime(), var2.getTime(), and var3.getTime()). However, before I can use .getTime() on them, I need to make sure they exist (so the script doesn't crash).</p>
  
  <p>If one of the variables doesn't exist I still want to get the Math.min of the other variables that exist.</p>
  
  <p>Any clues?</p>