Here’s a JavaScript object, and here’s a code that correctly groups the items by .id in each of the two arrays ojb.a and obj.b, the result being The lambda, however, is in fact just the partial application of _.groupBy to its second argument, which is set to ‘id’, so I thought something like this should work, or at least something