Skip to main content
Module

x/lodash_es/mod.ts>countBy

lodash for deno use
Latest
variable countBy
import { countBy } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

Creates an object composed of keys generated from the results of running each element of collection thru iteratee. The corresponding value of each key is the number of times the key was returned by iteratee. The iteratee is invoked with one argument: (value).