mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 05:52:57 +00:00
feat: enable stricter typescript compiler options
This commit is contained in:
@@ -20,7 +20,7 @@ export function groupBy<T>(collection: T[], group: (item: T) => string | undefin
|
||||
return collection.reduce((accumulator: Record<string, T[]>, item) => {
|
||||
const key = group(item) ?? '';
|
||||
accumulator[key] = accumulator[key] ?? [];
|
||||
accumulator[key].push(item);
|
||||
accumulator[key]!.push(item);
|
||||
return accumulator;
|
||||
}, {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user