Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array unique values javascript

const myArray = ['a', 1, 'a', 2, '1'];
const unique = [...new Set(myArray)]; // ['a', 1, 2, '1']
 
PREVIOUS NEXT
Tagged: #array #unique #values #javascript
ADD COMMENT
Topic
Name
7+2 =