1.0.2 • Published 7 years ago
simple-histogram v1.0.2
simple-histogram
Simple histogram utility (sorted desc by the values)
simpleHistogram(['a', 'a', 'b', 'c', 'c', 'c'])
// => [ { c: 3 }, { a: 2 }, { b: 1 } ]
License
MIT
Simple histogram utility (sorted desc by the values)
simpleHistogram(['a', 'a', 'b', 'c', 'c', 'c'])
// => [ { c: 3 }, { a: 2 }, { b: 1 } ]
MIT