6 lines
168 B
TypeScript
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;
|