Javascript Array remove duplicate element

Description

Javascript Array remove duplicate element


const numbers = [2,3,4,4,2,3,3,4,4];

console.log(numbers);/*from www  . ja va 2  s  .  c  o m*/

let r = [...new Set(numbers)];

console.log(r); 



PreviousNext

Related