All questions
Intermediate · TypeScript · Generics
Generic groupBy
Commonly asked: QA/SDET coding rounds · ~10 min
Write a generic groupBy<T>(items: T[], key: (item: T) => string): Record<string, T[]>.
Checking your membership…
Intermediate · TypeScript · Generics
Commonly asked: QA/SDET coding rounds · ~10 min
Write a generic groupBy<T>(items: T[], key: (item: T) => string): Record<string, T[]>.
Checking your membership…