Skip to content

Commit ea58c84

Browse files
committed
refactor: name type parameters consistently
1 parent abea025 commit ea58c84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export function reverseFn(): typeof reverse {
3838
return reverse;
3939
}
4040

41-
export function groupBy<TElement>(array: ArrayLike<TElement>,
42-
keyOf: (element: TElement) => string): Dictionary<TElement[]> {
43-
const grouped = {} as Dictionary<TElement[]>;
41+
export function groupBy<T>(array: ArrayLike<T>,
42+
keyOf: (element: T) => string): Dictionary<T[]> {
43+
const grouped = {} as Dictionary<T[]>;
4444

4545
for (let i = 0; i < array.length; ++i) {
4646
const element = array[i];

0 commit comments

Comments
 (0)