documentcloud/underscore — pull request #688 by jpbochi (2012-07-28 13:21:45+00:00)
Title: groupBy with selector

I changed groupBy so that it accepts an optional third "selector" argument. It is used to select values inside each group. In this way, you can easily group by one thing and select by another.

Naturally, I wrote unit tests to cover it.