Skip to content

Commit

Permalink
Lint :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasReumann committed Aug 21, 2023
1 parent 4dccc2f commit 6c35f44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/ts/utilities/smartarray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export class GroupedSmartArray<T, K extends keyof never> {
export type CompareFunction<T> = (a: T, b: T) => number;
export type FilterPredicate<T> = (o: T) => boolean;

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

0 comments on commit 6c35f44

Please sign in to comment.