Home > @wixc3/common > histogram
Calculate a histogram of iterable elements
Signature:
export declare function histogram<T>(iterable: Iterable<T>): Map<T, number>;
Parameter | Type | Description |
---|---|---|
iterable | Iterable<T> |
Returns:
Map<T, number>
an histogram map (element=>count)