getKey

open external fun getKey(query: IDBValidKey): IDBRequest<IDBValidKey?>(source)
open external fun getKey(query: IDBKeyRange): IDBRequest<IDBValidKey?>(source)

The getKey() method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store.

MDN Reference