Created
July 7, 2020 13:18
-
-
Save jz5/976c4392dd35123c632069740e5f4f1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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