All examples By author By category About

eesur

d3 | lodash groupBy float numbers

Grouping an array using lodash _.groupBy.

Creates an object composed of keys generated from the results of running each element of collection through iteratee. The corresponding value of each key is an array of the elements responsible for generating the key. The iteratee is bound to thisArg and invoked with three arguments: (value, index|key, collection).