Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript remove duplicates from array

// for TypeScript and JavaScript
const initialArray = ['a', 'a', 'b',]
finalArray = Array.from(new Set(initialArray)); // a, b
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #remove #duplicates #array
ADD COMMENT
Topic
Name
7+7 =