selectVisibleTodos
selectVisibleTodos is a selector function used in todo list applications to derive the subset of todos that should be displayed based on the current filter and search criteria. It reads the application state and returns a new array containing only the items that are visible to the user, without mutating the original data.
Typically the state includes a todos array and a visibility filter, which can be ALL, ACTIVE, or
Performance considerations: selectVisibleTodos is often implemented as a memoized selector to avoid recomputing when inputs have
Example usage: in a React-Redux component, the visible list is obtained by calling useSelector(selectVisibleTodos) and then
Variants and extensions: some apps support multiple filters (for example by priority or due date) or add