Update with Partial
Easy · Utility Types
Write updateTodo(todo: Todo, changes: Partial<Todo>): Todo that returns a new todo with the changes applied.
Partial<Todo> means every property of Todo becomes optional.
Next: Count by Type
Easy · Utility Types
Write updateTodo(todo: Todo, changes: Partial<Todo>): Todo that returns a new todo with the changes applied.
Partial<Todo> means every property of Todo becomes optional.
Next: Count by Type