indexOfKey function

Module @runic-artifex/views-effect in @runic-artifex/views-effect 0.23.0

function indexOfKey<TRow>(collection: QueryCollection<TRow>, key: string): Effect.Effect<number | undefined, ViewError>;

The position of the row with key in a query collection's current query, or undefined when no row has it: what a search scrolls to with QueryViewportController.scrollToIndex.