Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get all dublicates indexes in array

// find dublicate indexes
let dublIndexes = []
arr.forEach((e, i, a) => {
  if (a.indexOf(e) !== i) dublIndexes.push(i)
})
 
PREVIOUS NEXT
Tagged: #js #dublicates #indexes #array
ADD COMMENT
Topic
Name
9+5 =