Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { createSelector } from 'reselect'
- const getBelts = state => state.shop.items.belts
- const getBrownBelts = createSelector(
- getBelts,
- belts => belts.filter(belt => belt.color === 'brown')
- )
Add Comment
Please, Sign In to add comment