0
配列があり、文字列の一致数を見つける必要があります。配列の一致数を計算するLodash
Array = ['car','road','car','ripple'];
Array.forEach(function(element) {
// Here for every element need to see how many there are in the same array.
// car = 2
//road = 1
//...
}, this);