Sawtaytoes
2/24/2019 - 12:19 PM

A Simplified Redux-Observable

export const action$ = new Subject()

export const ofType = (
  ...requiredTypes
) => (
  filter(({ type }) => (
    requiredTypes
    .includes(type)
  )),
)