getters doneTodosCount state getters return getters doneTodos length s

1
2
3
4
5
6
7
getters: {
// ...
doneTodosCount: (state, getters) => {
return getters.doneTodos.length;
};
}
store.getters.doneTodosCount; // -> 1