javascript and es6 filter array with unique key
<p>I have a list in variable like:</p>

<pre><code>var name_list = some_list

console.log(name_list)

Array[3]
   0: Object
       name: "Johny"
   1: Object
       name: "Monty"
   2: Object3:
      name: "Johny"
</code></pre>

<p>I want to get the list with <code>non repetitive</code> list.
How can I do this ?</p>

<p><strong>Update</strong></p>

<p>I tried with this.. </p>

<pre><code>var unique_name = [ ...new Set(name_list.map(name =&gt; {
                return name.name
            }))]
</code></pre>

<p>It works fine but I want the <code>object</code> that are filtered unique according to name.</p>

<p>Any idea ??</p>