Skip to content

Dexie.delByKeyPath()

David Fahlander edited this page May 6, 2014 · 2 revisions

Delete a property from object given a key path.

Sample

var obj = {
    name: "Kalle",
    address: {
        street: "East 13th Street",
        city: "New York"
    }
};

Dexie.delByKeyPath(obj, "address.street");
alert (obj.address.street); // Will alert (undefined);
Clone this wiki locally