The primaryKey read-only property of the IDBCursor interface returns the cursor's current effective key.
primaryKey
MDN Reference