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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #values #string #javascript
ADD COMMENT
Topic
Name
5+2 =