fix(redux/functions): fix typo
The intention of the code is (1) to return target if none of the setters lead to an actual change, (2) to not modify target, and (3) to do it with a 1 copyOnWrite at most.
This commit is contained in:
parent
dc24782a2c
commit
e520319af2
|
@ -19,7 +19,7 @@ export function assign(target: Object, source: Object) {
|
|||
let t = target;
|
||||
|
||||
for (const property in source) { // eslint-disable-line guard-for-in
|
||||
t = set(t, property, source[property], t === target);
|
||||
t = _set(t, property, source[property], t === target);
|
||||
}
|
||||
|
||||
return t;
|
||||
|
|
Loading…
Reference in New Issue