Skip to content

Instantly share code, notes, and snippets.

@fxlrnrpt
Created January 5, 2019 23:20
Show Gist options
  • Select an option

  • Save fxlrnrpt/37dec78bde06d7e459b1b82d4e7d10b0 to your computer and use it in GitHub Desktop.

Select an option

Save fxlrnrpt/37dec78bde06d7e459b1b82d4e7d10b0 to your computer and use it in GitHub Desktop.
const makeSelectorCatNames = () =>
createSelector(
(state) => state.cats.data,
(cats) => cats.data.reduce((accum, { name }) => `${accum} ${name}`, ''),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment