title: Delete duplicated elements in array of objects Javascript
body: <p>Basically I want to know how to clean an array of objects in JavaScript.</p>
  
  <p>I have seen some samples that show how to do it depending on the value of one element and I need it to be generic. It means that it doesn't depend on the child's names.</p>
  
  <p><a href="https://stackoverflow.com/questions/43728070/delete-duplicated-items-in-array-javascript-angularjs" title="Example">Example of the way i don't want</a></p>
  
  <p>What I need is a function that can work independently of the object structure.</p>
  
  <p>For example, it can work with this:</p>
  
  <pre><code>object = [
      {value: 'value', configuration: 'configuration'},
      {value: 'value2', configuration: 'configuration2'},
      {value: 'value', configuration: 'configuration'},
  ]
  
  //returning:
  
  object = {
      {value: 'value', configuration: 'configuration'},
      {value: 'value2', configuration: 'configuration2'}
  }
  </code></pre>
  
  <p>And it can also work with:</p>
  
  <pre><code>object = [
      {name: 'name', property: 'property'},
      {name: 'name2', property: 'property2'},
      {name: 'name', property: 'property'},
  ]
  
  //returning:
  
  object = [
      {name: 'name', property: 'property'},
      {name: 'name2', property: 'property2'}
  ]
  </code></pre>