原始问题:
编写一个函数用于统计下面数组中每人 (userld)三年最大的邮件封数
var data = [{
userId: 1,
year: 2016,
mailCount: 1234
}, {
userId: 1,
year: 2017,
mailCount: 4321
}, {
userId: 2,
year: 2016,
mailCount: 2345 }, { userId: 2, year: 2017, mailCount 5678 }];
Prev:为什么康康喜欢拉屎