-
-
Notifications
You must be signed in to change notification settings - Fork 117
Unset
Héliton Nordt edited this page Jul 11, 2015
·
1 revision
var Baobab = require('baobab');
var tree = new Baobab({
colors: ['red', 'blue', 'green'],
languages: {
google: ['js', 'python'],
microsoft: ['js', 'typescript']
}
});
tree.select('colors').unset();
tree.unset(['languages', 'google']);
// On update event
tree.get();
>>> { languages: { microsoft: [ 'js', 'typescript' ] } }