Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove duplicate value from array

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

console.log(uniqueChars);
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #array
ADD COMMENT
Topic
Name
8+6 =