Appearance
Count the number of elements that match a given condition.
countBy([1, 2, 3, 4, 5], (x) => x % 2 === 0) // => 2
const { countBy } = require('rhodash') countBy([1, 2, 3, 4, 5], (x) => x % 2 === 0) // => 2