DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
array unique values javascript
const myArray = ['a', 1, 'a', 2, '1']; const unique = [...new Set(myArray)]; // ['a', 1, 2, '1']
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#array
#unique
#values
#javascript
ADD COMMENT
Topic
COMMENT
Name
4+2 =
Submit