MCPcopy
hub / github.com/redux-loop/redux-loop / batchCmds

Function batchCmds

src/batch-cmds.js:3–12  ·  view source on GitHub ↗
(cmds)

Source from the content-addressed store, hash-verified

1import Cmd from './cmd';
2
3export default function batchCmds(cmds) {
4 switch (cmds.length) {
5 case 0:
6 return Cmd.none;
7 case 1:
8 return cmds[0];
9 default:
10 return Cmd.list(cmds);
11 }
12}

Callers 3

combineReducersFunction · 0.85
reduce-reducers.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected