DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript to remove duplicates from an array
uniqueArray = a.filter(function(item, pos) { return a.indexOf(item) == pos; })
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
#remove
#duplicates
#array
ADD COMMENT
Topic
COMMENT
Name
9+4 =
Submit