Creates an object composed of keys from the results of running elements of collection thru iteratee. The corresponding value of each key is the number of times the key was returned by iteratee.
collection
iteratee
Returns an Object with the frequency values
count([6.1, 4.2, 6.3], Math.floor);// { '4': 1, '6': 2 }// property iteratee shorthand.count(['one', 'two', 'three'], x => x.length);// { '3': 2, '5': 1 }
Generated using TypeDoc
Creates an object composed of keys from the results of running elements of
collection
thruiteratee
. The corresponding value of each key is the number of times the key was returned byiteratee
.Returns
Returns an Object with the frequency values
Example