mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
@@ -15,7 +15,3 @@ export function mergeById<T extends { [id: string]: unknown }>(object: T, source
|
||||
export function mapById<T>(object: ById<T>, ids: string[]): T[] {
|
||||
return ids.map(id => object[id]).filter(a => a !== undefined)
|
||||
}
|
||||
|
||||
export function mapId(entities: { id: string }[]): string[] {
|
||||
return entities.map(e => e.id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user