in todo/data/database.js [75:86]
export function getTodos(status: string = 'any'): $ReadOnlyArray<Todo> {
const todoIdsForUser = getTodoIdsForUser(USER_ID);
const todosForUser = todoIdsForUser.map(getTodoOrThrow);
if (status === 'any') {
return todosForUser;
}
return todosForUser.filter(
(todo: Todo): boolean => todo.complete === (status === 'completed'),
);
}