UNPKG

@e-group/redux-modules

Version:

eGroup team react-redux modules that share across projects.

11 lines (9 loc) 325 B
import camalize from './camalize'; import findFetchIndex from './findFetchIndex'; import trimLeafs from './trimLeafs'; const getTrimedLeafs = actionType => { const leafs = camalize(actionType).split('/'); const fetchIndex = findFetchIndex(leafs); return trimLeafs(leafs, fetchIndex); }; export default getTrimedLeafs;