The keyPath property of the IDBIndex interface returns the key path of the current index.
keyPath
MDN Reference