src/appstate.js
function transformAsyncBranch (action, parentAction, path, actions, isSync) {
  action = action.slice();
  isSync = !isSync;
  return action
    .map((subAction, index) => {
      path.push(index);
      var result = transformBranch(subAction, action, path, actions, isSync);
      path.pop();
      return result;
    })
    .filter(branch => !!branch);
}
function transformAsyncBranch (action, parentAction, path, actions, isSync) {
  action = action.slice();
  isSync = !isSync;
  return action
    .map((subAction, index) => {
      path.push(index);
      var result = transformBranch(subAction, action, path, actions, isSync);
      path.pop();
      return result;
    })
    .filter(branch => !!branch);
}
function transformAsyncBranch ( action , parentAction , path , actions , isSync ) { action = action . slice ( ) ; isSync = ! isSync ; return action . map ( ( subAction , index ) => { path . push ( index ) ; var result = transformBranch ( subAction , action , path , actions , isSync ) ; path . pop ( ) ; return result ; } ) . filter ( branch => ! ! branch ) ; }
Transform action to async branch
@param {Function} action
@param {Array|Function} parentAction
@param {Array} path
@param {Array} actions
@param {Boolean} isSync
@returns {*}
Transform action to async branch