Object mutations Toggle todo, (todo) return Object.assign({}, ...todo, completed: !todo.completed}; If objects have same properties, the rightmost will override the previous source. The first args is returned with merged sources.