title: Remove duplicate objects in an array of object in JavaScript
body: <pre><code>Object1 = {connectorIndex: 1, nodeID: 6, Connectors: Object}
  Object2 = {connectorIndex: 1, nodeID: 6, Connectors: Object}
  Connector: {name: "ALAND", key: "", description: "Departure country (country from which the goods are sent)"}
  </code></pre>
  
  <p>There are two objects in same array. The connector objects are identical. How do I remove duplicate elements and get the final array with one object?</p>
  
  <pre><code>var array = [object 1, object 2];
  </code></pre>
  
  <p><code>object 2</code> is the duplicate to remove from the array.</p>