( collection: Collection<T>, ids: Array<string>, )
| 57 | * Check if a collection has loaded specific IDs |
| 58 | */ |
| 59 | export function hasLoadedIds<T extends { id: string }>( |
| 60 | collection: Collection<T>, |
| 61 | ids: Array<string>, |
| 62 | ): boolean { |
| 63 | const loadedIds = getLoadedIds(collection) |
| 64 | return ids.every((id) => loadedIds.includes(id)) |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Check if a collection has ONLY loaded specific IDs (no extras) |
nothing calls this directly
no test coverage detected