title: Lodash: how to find max and min values of each id
body: <p>My data array is</p>
  
  <pre><code>array = [{id: 2, name: "kent", status_id: 2, date_1: "2018-08-09", date_2: "2018-07-06"},{id: 2, name: "kent", status_id: 10, date_1: "2018-01-09", date_2: "2018-09-06"},{id: 3, name: "tracy", status_id: 2, date_1: "2018-05-03", date_2: "2018-10-02"},{id: 3, name: "tracy", status_id: 2, date_1: "2018-01-10", date_2: "2018-09-12"},{id: 3, name: "tracy", status_id: 10, date_1: "2018-02-10", date_2: "2018-09-02"},{id: 4, name: "lucy", status_id: 10, date_1: "2018-12-10", date_2: "2018-08-09"},{id: 5, name: "steve", status_id: 10, date_1: "2018-12-7", date_2: "2018-04-01"}]
  </code></pre>
  
  <p>If the id =2 I would like to find max(date_1) &amp; min(date_2) for each id=2. Like my output should be,</p>
  
  <pre><code>id
  2    max(date_1)   min(date_2)
  3    max(date_1)   min(date_2)
  4    max(date_1)   min(date_2)
  5    max(date_1)   min(date_2)
  </code></pre>
  
  <p>I am using Lodash library. I would appreciate the help.</p>