Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove duplicate values from string in javascript

const names = ['John', 'Paul', 'George', 'Ringo', 'John'];

let unique = [...new Set(names)];
console.log(unique); 
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #values #string #javascript
ADD COMMENT
Topic
Name
9+7 =