$.indexeddb(db).objectStore(objectStore).index(field).openCursor([1,10]).each(write);