-
-
Notifications
You must be signed in to change notification settings - Fork 117
Unshift
Christian Alfoni edited this page Mar 13, 2015
·
3 revisions
var Baobab = require('baobab');
var tree = new Baobab({
items: ['foo']
});
tree.select('items').unshift('bar');
// On update event
tree.select('items').get();
>>> ['bar', 'foo']