function createRootReducer(reducers){
return function(state, action){
for (let i = 0; i < reducers.length; i++){
let newState = reducers[i](state, action);
if ( isEmpty(newState) == false ) return newState;
}
return state;
}
}
const reducer = createRootReducer([
//reducers array
])