title: Find object having maximum value for the `id` property in an array of objects
body: <p>In my array of objects, I want to find the object with the highest value for the <code>id</code> property.</p>
  
  <p>Here is my array:</p>
  
  <pre><code>myArray = [
    {
      'id': '73',
      'foo': 'bar'
    },
    {
      'id': '45',
      'foo': 'bar'
    },
    // …
  ];
  </code></pre>
  
  <p>Generally, I use <code>$.grep</code> to find values in an array, like this:</p>
  
  <pre><code>var result = $.grep(myArray, function (e) {
      return e.id == 73;
  });
  </code></pre>
  
  <p>But in this case I need to provide a specific <code>id</code> value for the object I want to select.</p>