You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 6-data-storage/03-indexeddb/article.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -678,7 +678,7 @@ In the example above the cursor was made for the object store.
678
678
679
679
But we also can make a cursor over an index. As we remember, indexes allow to search by an object field. Cursors over indexes to precisely the same as over object stores -- they save memory by returning one value at a time.
680
680
681
-
For cursors over indexes, `cursor.key` is the index key (e.g. price), and we should use `cursor.primaryKey` property the object key:
681
+
For cursors over indexes, `cursor.key` is the index key (e.g. price), and we should use `cursor.primaryKey` property for the object key:
682
682
683
683
```js
684
684
let request =priceIdx.openCursor(IDBKeyRange.upperBound(5));
0 commit comments