I was reading through the source of todoapp-flux example, and in TodoStore.js I saw this:
function update(id, updates) {
// original
// _todos[id] = merge(_todos[id], updates);
// my version
_todos[id].complete = updates.complete;
}
I was wondering why facebook choose to merge two object, instead of just change the value of one property? Is there any benefit doing so?