title: How to get unique JSON array by JSON value?
body: <p>I have one JSON array. I need a unique array. I have tried all possible things using .map(), .filter().  but no success.</p>
  <p>Also, I have applied alternatives but it does not work for me. such as</p>
  <p><a href="https://stackoverflow.com/questions/15125920/how-to-get-distinct-values-from-an-array-of-objects-in-javascript">How to get distinct values from an array of objects in JavaScript?</a></p>
  <p><a href="https://stackoverflow.com/questions/11826302/how-to-make-a-json-array-unique">How to make a JSON array unique</a></p>
  <pre><code>var slots = [
      {
          id: 1239,
          slot1: &quot;08:00:00-16:00:00&quot;,
          slot2: null,
          slot3: null,
          slot4: null,
          slot5: null,
          slot6: null,
          slot7: null,
          slot8: null,
          slot9: null,
          slot10: null,
          slot11: null,
          slot12: null,
          slot13: null,
          slot14: null,
          slot15: null,
          slot16: null,
          slot17: null,
          slot18: null,
          slot19: null,
          slot20: null,
          slots_end: &quot;2021-07-06T16:00:00+03:00&quot;,
          slots_start: &quot;2021-07-06T08:00:00+03:00&quot;,
      },
      {
          id: 1240,
          slot1: &quot;09:00:00-18:00:00&quot;,
          slot2: null,
          slot3: null,
          slot4: null,
          slot5: null,
          slot6: null,
          slot7: null,
          slot8: null,
          slot9: null,
          slot10: null,
          slot11: null,
          slot12: null,
          slot13: null,
          slot14: null,
          slot15: null,
          slot16: null,
          slot17: null,
          slot18: null,
          slot19: null,
          slot20: null,
          slots_end: &quot;2021-07-06T18:00:00+03:00&quot;,
          slots_start: &quot;2021-07-06T09:00:00+03:00&quot;,
      },
      {
          id: 1241,
          slot1: &quot;09:00:00-18:00:00&quot;,
          slot2: null,
          slot3: null,
          slot4: null,
          slot5: null,
          slot6: null,
          slot7: null,
          slot8: null,
          slot9: null,
          slot10: null,
          slot11: null,
          slot12: null,
          slot13: null,
          slot14: null,
          slot15: null,
          slot16: null,
          slot17: null,
          slot18: null,
          slot19: null,
          slot20: null,
          slots_end: &quot;2021-07-06T18:00:00+03:00&quot;,
          slots_start: &quot;2021-07-06T09:00:00+03:00&quot;,
      },
  ]
  </code></pre>
  <p>As a result, should be...</p>
  <p><a href="https://i.stack.imgur.com/yVUMo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yVUMo.png" alt="enter image description here" /></a></p>
  <p>Thanks in advance.</p>