You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current return type of groupBy is Record<string, T[]> which is not true. For example:
const entries = [{
projectId: 52893075,
description: "My description",
isDuplicate: true
}]
const grouped = groupBy(entries, (e) => e.isDuplicate ? 1 : 0)
/*
* ❗grouped[0] is undefined in runtime, but typescript does not complain. groupBy does not initialize empty arrays for non existing
* keys in given collection
*/
grouped[0].map(/* missing impl */)