title: How can I for an array of objects if value doesn't exists in the array it must push to that array, if it does exist it must not push it
body: <p>How to avoid duplicate objects push() in an Array?</p>
  
  <pre><code>    let arrOj = [
        {id: 1, name: 'foo', source: 234},
        {id: 2, name: 'bar', source: 23 },
        {id: 3, name: 'test', source: 4},
        {id: 1, name: 'change', source: 234}
      ]; 
  </code></pre>
  
  <p>loop through this array of objects "arrOj" and push value each object to this new array "arrNew" only if the value of name doesn't exist </p>
  
  <pre><code>        let arrNew = [
        {id: 1, name: 'foo', source: 234},
        {id: 2, name: 'bar', source: 23 },
        {id: 3, name: 'test', source: 4}
      ]; 
  </code></pre>
  
  <p>so I want only push new value to the array if the name doesn't exist</p>
  
  <pre><code>{id: 1, name: 'change', source: 234}, // i can push this value
  {id: 1, name: 'foo', source: 234}, // i must not push this value because the name does exists
  </code></pre>