Maps each chunk as an object with a "label" and a "value".
The label can be the result of a property on the chunk.
groupBy:function
--one--------------------two--------------------three-------------------label('length')--{label:3,value:'one'}--{label:3,value:'two'}--{label:5,value:'three'}- Copy
--one--------------------two--------------------three-------------------label('length')--{label:3,value:'one'}--{label:3,value:'two'}--{label:5,value:'three'}-
The label can be the result of calling a provided function.
--6.1------------------4.2------------------6.3------------------label(Math.floor)--{label:6,value:6.1}--{label:4,value:4.2}--{label:6,value:6.3}-- Copy
--6.1------------------4.2------------------6.3------------------label(Math.floor)--{label:6,value:6.1}--{label:4,value:4.2}--{label:6,value:6.3}--
Maps each chunk as an object with a "label" and a "value".
The label can be the result of a property on the chunk.