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);