title: NodeJS: How to remove duplicates from Array
body: <p>I have an array:</p>
  
  <pre><code>[
      1029,
      1008,
      1040,
      1019,
      1030,
      1009,
      1041,
      1020,
      1031,
      1010,
      1042,
      1021,
      1030,
      1008,
      1045,
      1019,
      1032,
      1009,
      1049,
      1022,
      1031,
      1010,
      1042,
      1021,
  ]
  </code></pre>
  
  <p>Now I want to remove all the duplicates from it. Is there any method in NodeJs which can directly do this.</p>