function getVal(firebase, path, notSetValue) {
  if (!firebase) {
    return notSetValue
  }

  const dotPath = getDotStrPath(path)
  const valueAtPath = get(firebase, dotPath, notSetValue)

  return valueAtPath
}
**Deprecated** - This helper will be removed in future versions. Please
use object destructuring or utilities from other libraries such as
[lodash's get](https://lodash.com/docs/4.17.15#get).
Get a value from firebase using slash notation. This enables an easy
migration from v1's dataToJS/pathToJS/populatedDataToJS functions to v2 syntax
**NOTE:** Setting a default value will cause `isLoaded` to always return true
@param {object} firebase - Firebase instance (state.firebase)
@param {string} path - Path of parameter to load
@param {any} notSetValue - Value to return if value is not
found in redux. This will cause `isLoaded` to always return true (since
value is set from the start).
@returns {any} Data located at path within firebase.
@example <caption>Basic</caption>
import { compose } from 'redux'
import { connect } from 'react-redux'
import { firebaseConnect, getVal } from 'react-redux-firebase'

const enhance = compose(
  firebaseConnect(['todos/user1']),
  connect(({ firebase }) => ({
    // this.props.todos loaded from state.firebase.data.todos
    todos: getVal(firebase, 'data/todos/user1')
  }))
)
export default enhance(SomeComponent)
@example <caption>Base Paths</caption>
import { connect } from 'react-redux'
import { firebaseConnect, getVal } from 'react-redux-firebase'

export default connect(({ firebase }) => ({
  // this.props.auth loaded from state.firebase.auth
  auth: getVal(firebase, 'auth'),
  profile: getVal(firebase, 'profile')
})(SomeComponent)
@example <caption>Default Value</caption>
import { compose } from 'redux'
import { connect } from 'react-redux'
import { firebaseConnect, getVal } from 'react-redux-firebase'

const defaultValue = {
 1: {
   text: 'Example Todo'
 }
}

const enhance = compose(
  firebaseConnect(['todos/user1']),
  connect(({ firebase }) => ({
    // this.props.todos loaded from state.firebase.data.todos
    todos: getVal(firebase, 'data/todos/user1', defaultValue)
  }))
)

export default enhance(SomeComponent)