8 lines
182 B
JavaScript
8 lines
182 B
JavaScript
|
export function deleteAll (store, index, keyRange) {
|
||
|
index.getAllKeys(keyRange).onsuccess = e => {
|
||
|
for (let result of e.target.result) {
|
||
|
store.delete(result)
|
||
|
}
|
||
|
}
|
||
|
}
|