Skip to content

Commit f22874e

Browse files
committed
fix
1 parent db9d685 commit f22874e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

6-data-storage/03-indexeddb/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ In the example above the cursor was made for the object store.
678678

679679
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.
680680

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:
682682

683683
```js
684684
let request = priceIdx.openCursor(IDBKeyRange.upperBound(5));

0 commit comments

Comments
 (0)