title: Finding the max value of an attribute in an array of objects in an object
body: <p>I have a JavaScript object and want to get the highest value of all entries.
  I have tried this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>d = {
  "A": [ {"value": 10}, {"value": 20}, {"value": 30} ],
  "B": [ {"value": 50}, {"value": 60}, {"value": 1000} ],
  }
  
  Object.keys(d).map(
      function(k) { 
          Math.max.apply(Math, d[k].map(
              function(e) {
                  console.log(value);
              }
          ))
      }
  ) </code></pre>
  </div>
  </div>
  </p>
  
  <p>The result should be 1000.</p>