Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove duplicates in an Array in Javascript

let chars = ['A', 'B', 'A', 'C', 'B'];
let uniqueChars = [...new Set(chars)];

console.log(uniqueChars);
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #remove #duplicates #Array #Javascript
ADD COMMENT
Topic
Name
8+5 =