array grouping function by TS. 这个名字被迫这样,因为array-group被占用了...
array group by function. support Array.prototype