Skip to content
Christian Alfoni edited this page Mar 5, 2015 · 2 revisions
var Baobab = require('baobab');

var tree = new Baobab({
  todos: [],
  isLoading: false
});

// Get all state
tree.get(); // { todos: [], isLoading: false }

// Get from cursor
tree.select('todos').get(); // []

// Get from unset cursor
tree.select('i_do_not_exist').get(); // undefined