brisky-state-get
Get state object, using Brisky subscription notation.
var stateObj = stateGet(state, path)
Get state at path
- state (object) - state startpoint
- path (array) - array of keys to follow
- {*} [set] - value to set if property is undefined (optional)
- returns (object) stateObj - state at endpoint
const get = const s = const state = // → state.pages.discover.carousel // → state.pages.shows // → state.pages.shows // → state.pages.shows.episodes // → state.pages // → state.pages foo // → 'bar'