trouver des doublons et leur nombre dans un tableau javascript
var counts = {};
your_array.forEach(function(x) { counts[x] = (counts[x] || 0)+1; });
Xanthous Xenomorph
var counts = {};
your_array.forEach(function(x) { counts[x] = (counts[x] || 0)+1; });