Dexie.addons
import Dexie from 'dexie';
export function ForEachAddon (db) {
// Makes it possible to use forEach() instead of each() on collections.
db.Collection.prototype.forEach = db.Collection.prototype.each;
}
// Register the addon to be included by default (optional)
Dexie.addons.push(ForEachAddon);(function(){
function ForEachAddon (db) {
// Makes it possible to use forEach() instead of each() on collections.
db.Collection.prototype.forEach = db.Collection.prototype.each;
}
// Register the addon to be included by default (optional)
Dexie.addons.push(ForEachAddon);
})();