Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

count occurence in array js

var set = Array.from(new Set(initial));  

//set = [5, 2, 9, 4]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #occurence #array #js
ADD COMMENT
Topic
Name
4+1 =