Get state - Yomguithereal/baobab GitHub Wiki
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