UNPKG

higher-order-reducers

Version:

A library of simple everyday reducer utility functions

6 lines (3 loc) 158 B
import linkIf from './link-if'; const linkIfType = (types = []) => linkIf((state, action) => types.indexOf(action.type) !== -1); export default linkIfType;