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