title: Remove 'duplicate' objects from array by comparing sub properties (typescript)
body: <p>I receive an array of complex objects from the server. I would like to filter the original array to get a new array with unique objects by a sub-property of an each object, i.e :</p>
  
  <pre><code>let arr1 = originalArray;
  let arr2 = originalArray.filter((ele, idx, arr) =&gt; ....
  </code></pre>
  
  <p>Now for example, arr1 consists of 3 objects:</p>
  
  <pre><code>firstObj = {
      id: 0,
      Details:
          {
              License: 123456
          },
      name: 'abc'
  };
  secondObj = {
      id: 1,
      Details:
          {
              License: 131313
          },
      name: 'xcd'
  };
  thirdObj = {
      id: 2,
      Details:
          {
              License: 123456
          },
      name: 'bcd'
  };
  </code></pre>
  
  <p>So, I want to filter the array so that the newly returned array will consist of only two objects where the 'License' property will be unique, that is, one of the objects with the same 'License' will be removed. Thanks.</p>