title: Nested _.max() with lodash
body: <p>I am trying to get max and min values of arrays values inside objects array which looks like this:</p>
  
  <pre><code>[
      {
          id: 1,
          enabled: false,
          layer: 'Mood',
          color: '#f16c63',
          points: [
              {date: '2013-01-02', value: 20},
              {date: '2013-02-02', value: 15},
              {date: '2013-03-12', value: 24},
              {date: '2013-03-23', value: 18},
              {date: '2013-03-24', value: 22},
              {date: '2013-04-09', value: 12},
              {date: '2013-06-13', value: 16},
              {date: '2013-06-14', value: 20},
          ]
      },
      {
          id: 2,
          enabled: true,
          layer: 'Performance',
          color: '#698bfc',
          points: [
              {date: '2013-01-02', value: 15},
              {date: '2013-02-02', value: 24},
              {date: '2013-03-12', value: 29},
              {date: '2013-03-23', value: 21},
              {date: '2013-03-24', value: 20},
              {date: '2013-04-09', value: 17},
              {date: '2013-06-13', value: 25},
              {date: '2013-06-14', value: 21},
          ]
      },
      {
          id: 3,
          enabled: false,
          layer: 'Fatigue',
          color: '#e1fc6a',
          points: [
              {date: '2013-01-02', value: 32},
              {date: '2013-02-02', value: 27},
              {date: '2013-03-12', value: 30},
              {date: '2013-03-23', value: 31},
              {date: '2013-03-24', value: 27},
              {date: '2013-04-09', value: 15},
              {date: '2013-06-13', value: 20},
              {date: '2013-06-14', value: 18},
          ]
      },
      {
          id: 4,
          enabled: true,
          layer: 'Hunger',
          color: '#63adf1',
          points: [
              {date: '2013-01-02', value: 12},
              {date: '2013-02-02', value: 15},
              {date: '2013-03-12', value: 13},
              {date: '2013-03-23', value: 17},
              {date: '2013-03-24', value: 10},
              {date: '2013-04-09', value: 14},
              {date: '2013-06-13', value: 12},
              {date: '2013-06-14', value: 11},
          ]
      },
  ]
  </code></pre>
  
  <p>I need to get the max and the min values from the <code>points</code> arrays.
  Seems like I can do something like this for max and similar for min values:</p>
  
  <pre><code>                   var maxDate = _.max(dataset, function (area) {
                     return _.max(area.points, function (point) {
                         console.log(new Date(point.date).getTime())
                         return new Date(point.date).getTime()
                     })
  
                 });
  </code></pre>
  
  <p>But for some reason this returns me -Infinity. Is it legit at all to use nested _.max() runs? I used this approach with D3.js library which worked just fine.</p>
  
  <p>Please advise.</p>