jakearchibald / idb

IndexedDB, but with promises
https://www.npmjs.com/package/idb
ISC License
6.39k stars 361 forks source link

Using index.iterate version of unwrapped openCursor option 'prev' #132

Closed josh-hemphill closed 4 years ago

josh-hemphill commented 5 years ago

From what I found, the only way to get a max index value directly is to use the 'prev' option on openCursor. Is there a way to get the max value directly with index.iterate, or do I have the unwrap the index to get it?

jakearchibald commented 4 years ago

iterate takes the same arguments as openCursor.