title: How to get unique values from Object Array Javascript
body: <p>So I have an object array that as follows:</p>
  
  <pre><code>var array = [
      {name:"Joe", date:'2018-07-01', amt:250 },
      {name:"Mars", date:'2018-07-01', amt:250 },
      {name:"Joe", date:'2018-07-02', amt:250 },
      {name:"Saturn", date:'2018-07-01', amt:250 },
      {name:"Joe", date:'2018-07-02', amt:250 },
      {name:"Jupiter", date:'2018-07-01', amt:250 },
  ]
  </code></pre>
  
  <p>I want to filter data depending if the <code>name</code>, <code>amount</code> and <code>date</code> has duplicate.
  This one doesn't filter even a duplicate name.</p>
  
  <pre><code>var unique = array.filter((v, i, a) =&gt;{ return a.indexOf(v) === i});
  </code></pre>
  
  <p>How can I filter duplicate for this one based on <code>name</code>, <code>amount</code> and <code>date</code>?</p>