-
-
Notifications
You must be signed in to change notification settings - Fork 668
Dexie.getByKeyPath()
David Fahlander edited this page May 6, 2014
·
2 revisions
Retrieve a property from an object given a key path.
var obj = {
name: "Kalle",
address: {
street: "East 13th Street",
city: "New York"
}
};
alert (Dexie.getByKeyPath(obj, "name")); // Will alert ("Kalle");
alert (Dexie.getByKeyPath(obj, "address.street")); // Will alert ("East 13th Street");
Dexie.js - minimalistic and bullet proof indexedDB library