src/utils/actions.js
function createWithFirebaseAndDispatch(firebase, dispatch) {
  return func => (...args) =>
    func.apply(firebase, [firebase, dispatch, ...args]);
}
function createWithFirebaseAndDispatch(firebase, dispatch) {
  return func => (...args) =>
    func.apply(firebase, [firebase, dispatch, ...args]);
}
function createWithFirebaseAndDispatch ( firebase , dispatch ) { return func => ( ... args ) => func . apply ( firebase , [ firebase , dispatch , ... args ] ) ; }
Function that builds a factory that passes firebase and dispatch as
first two arguments.
@param  {Object} firebase - Internal firebase instance
@param  {Function} dispatch - Redux's dispatch function
@return {Function} A wrapper that accepts a function to wrap with firebase
and dispatch.
Function that builds a factory that passes firebase and dispatch as first two arguments .