Easy way to prevent add object with the same value to array : <p>Like in title easy way to prevent add object with the same value to array</p>

<pre><code>const array = [
  {
    name:'John'
  },
  {
    name: 'Mark'
  }
]


array.push({name: 'John'}) //don't add

array.push({name: 'Kevin'}) //add

console.log(array)
</code></pre>
