I have an array for example
let arr = [{a:1, b:2, c:3}, {a:1, b:2}, {a:2, c:3}, {a:2, c:3} ];
and I used the keyBy function
const f = _.keyBy(arr, e => e.a);
Result is
1: {a: 1, b: 2}
2: {a: 2, c: 3}
But I need all properties, the result I expected is
1: {a: 1, b: 2, c:3}
2: {a: 2, c: 3}
What I have to do?