Skip to content

Commit

Permalink
Lint please work
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasReumann committed Aug 21, 2023
1 parent 3b5f9f8 commit 4dccc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/ts/utilities/smartarray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export type CompareFunction<T> = (a: T, b: T) => number;
export type FilterPredicate<T> = (o: T) => boolean;

function groupBy<T, K extends keyof never>(list: T[], getKey: (item: T) => K) {
return list.reduce((previous, currentItem) => {
return list.reduce(function (previous, currentItem) {
const group = getKey(currentItem);
if (!previous[group]) previous[group] = [];
previous[group].push(currentItem);
Expand Down

0 comments on commit 4dccc2f

Please sign in to comment.