process
Processes an action and returns the next state. This function is given the next function that is the next middleware function in the chain, and is expected to call next(action)
with different arguments, or at different times, or maybe not call it at all. The last middleware in the chain will receive the real Store.dispatch function as the next, thus ending the chain.