Let record be the first in store’s list of records whose is in range, if any.
If record was not found, return undefined.
Let serialized be of record’s .
Return ! (serialized, targetRealm).
To retrieve multiple values from an object store with targetRealm, store, range and optional count, run these steps:
If count is not given or is 0 (zero), let count be infinity.
Let records be a list containing the first count in store’s list of records whose is in range.
record of records:
Let serialized be record’s value.
Let entry be StructuredDeserialize(serialized, targetRealm).
Append entry to list.
Return list converted to a .
To retrieve a key from an object store with store and range, run these steps:
Let record be the first record in store’s whose key is range, if any.
Return the result of running convert a key to a value with record’s key.
To retrieve multiple keys from an object store with store, range and optional count, run these steps:
If count is not given or is 0 (zero), let count be infinity.
Let records be a list containing the first count in store’s list of records whose is in range.
Let list be an empty .
For each record of records:
Let entry be the result of running with record’s key.
Return list converted to a sequence.