title: Filter objects by minimum value attributes in javascript
body: <p>I have an array of objects like below:</p>
  
  <pre class="lang-js prettyprint-override"><code>[
      {
          "id": 100,
          "Name": "T1",
          "amt": 15,
      },
      {
          "id": 102,
          "Name": "T3",
          "amt": 15,
      },
      {
          "id": 100,
          "Name": "T1",
          "amt": 20,
      },
      {
          "id": 105,
          "Name": "T6",
          "amt": 15,
      }
  ]
  </code></pre>
  
  <p>I want to filter the objects in the array by the minimum of <strong>amt</strong>. There are two objects with id's 100 but different <strong>amt</strong> (15 and 20). I want to filter the minimum value which is 15. The output should be:</p>
  
  <pre class="lang-js prettyprint-override"><code>[
      {
          "id": 100,
          "Name": "T1",
          "amt": 15,
      },
      {
          "id": 102,
          "Name": "T3",
          "amt": 15,
      },
      {
          "id": 105,
          "Name": "T6",
          "amt": 15,
      }
  ]
  </code></pre>
  
  <p>I followed this <a href="https://stackoverflow.com/questions/33850412/merge-javascript-objects-in-array-with-same-key">post</a> but does not fit with my problem.
  Is there any simpler way of doing this, either pure JavaScript or lodash?</p>