mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
Move server directory outside of frontend src
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export const groupByProperty = (object: any, property: string) => {
|
||||
return object.reduce((groups: any, item: any) => {
|
||||
const group = groups[item[property]] || [];
|
||||
group.push(item);
|
||||
groups[item[property]] = group;
|
||||
return groups;
|
||||
}, {});
|
||||
};
|
||||
Reference in New Issue
Block a user