Skip to content

Instantly share code, notes, and snippets.

@jz5

jz5/db.js

Created Jul 7, 2020
Embed
What would you like to do?
var db = new Dexie("friend_database");
db.version(1).stores({
friends: 'name,shoeSize'
});
window.putFriend = (friend) =>
db.friends.put(friend);
window.getFriends = () =>
db.friends.toArray();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment