The keyPath property of the IDBIndex interface returns the key path of the current index. If null, this index is not auto-populated.
keyPath
external JSAny? get keyPath;