Skip to content

Instantly share code, notes, and snippets.

@mcjcloud
Created July 10, 2020 06:45
Show Gist options
  • Save mcjcloud/f96dce0f654c1866f96d7ecb82f55139 to your computer and use it in GitHub Desktop.
Save mcjcloud/f96dce0f654c1866f96d7ecb82f55139 to your computer and use it in GitHub Desktop.
Asterisk Medium Article: selectors
export const selectIncompleteTodos = (state: RootState): TodoItem[] => state.todo.todos.filter(item => !item.complete) ?? []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment