1. javascript built-in: map: groupby