title: How to get maximum value in multi dimension array in js
body: <p>Here I want to get maximum value of this multi dimensional  array where tax_value is greater .</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>0:{id: "61", tax_value: "2.00000000"}
  1:{id: "81", tax_value: "12.00000000"}
  </code></pre>
  
  <p>Here I am getting the array using this code.</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code> var array = new Array();
          if (typeof $('select[id^=item_tax]') !== "undefined")
          {
              $('select[id^=item_tax]').each(function (i, e)
              {
                  if ($(e).val() &gt; 0)
                  {
                      array.push({id: $(e).val(), tax_value: $(e).find('option:selected').data('value')});
                  }
              });
  
  
          }
          console.log(array);//multi dimensional array is coming as output
  </code></pre>
  
  <p>How to get maximum value from this array.</p>