let a = [{id:1,name:'me'},{id:1,name:'you'},{id:2,name:'her'}]; _.groupBy(a,'id'); //就可以實現按id分組了。 複製程式碼