title: Removing Duplicates by Array.from(array.reduce((a, o) => a.set(o.property, o), new Map()).values()),How does it work?
body: <p>I am curious how this code work step by step to remove duplicates?I dont know how .set works and what is the use of new Map()here?,I can use other methods for removing object duplicates but this is probably faster.</p>
  <pre><code>Array.from(array.reduce((a, o) =&gt; a.set(o.property, o), new Map()).values())
  </code></pre>