• Build an IDBKeyRange for a compound key prefix scan.

    Parameters

    • prefix: number[]

      The known leading elements of the compound key. Elements that are undefined/null are treated as wildcards (stop prefix there).

    • totalArity: number

      Total number of components in the compound key.

    Returns IDBKeyRange

    An IDBKeyRange that matches all keys with the given prefix, or null if no components are bound (meaning: scan everything).