title: Get max value of property in object
body: <p>I am trying to get the max value of all the wins properties in an object. Here is a shortened example of the object, of which I am trying to get the max value of the wins props, which would be 11.</p>
  
  <pre><code>var coach_wins = {
    "player1": [
      {
        year: 2015,
        wins: 6
      },
      {
        year: 2016,
        wins: 6
      }
    ],
    "player2": [
      {
        year: 2015,
        wins: 11
      },
      {
        year: 2016,
        wins: 6
      }
    ]
  };
  </code></pre>
  
  <p>Currently I am counting the length of the object and then using a for loop to loop through the object and get the keys:</p>
  
  <pre><code>coach_wins[Object.keys(coach_wins)[i]];
  </code></pre>
  
  <p>then do this again and store the values of each wins value;</p>
  
  <p>Is there a more efficient way? </p>
  
  <p>Thanks.</p>