title: Find the smallest value of a table row using javascript
body: <p>Ok currently I'm using this code to find it but I need to filter out null fields so that all my cells that are blank don't turn red.</p>
  
  <pre><code>$('tr').each(function highlight() {
      var $td = $(this).children('td');
  
      // find all the values
      var vals = $td.map(function () {
              return +$(this).text();
          }).filter(function (val) {
              return val !== null
          });
  }).get();
  
  // then find their minimum
  var min = Math.min.apply(Math, vals);
  
  // tag any cell matching the min value
  $td.filter(function highlight() {
      return +$(this).text() === min;
  }).addClass('alert alert-danger');
  });
  </code></pre>
  
  <p>So how do I filter out the null values?</p>