rai-react/src/filters.ts
Kacper Donat c4ba27a59c initial
2020-01-06 22:06:12 +01:00

6 lines
168 B
TypeScript

import { Todo } from "./data";
export const all = (todo: Todo) => true;
export const done = (todo: Todo) => todo.done;
export const left = (todo: Todo) => !todo.done;