You can even search by range in indexedDB using the IDBKeyRange.bound function
IDBKeyRange.bound(keyValueFrom, keyValueTo, false, true);
You can set the start value, the end value, and if you must specify the start and end value in the returned elements. In my case, I want the first value of the range, however I want to exclude the last value.
For more on IDBKeyRange, please visit the W3C IndexedDB page .
source share