I have an object like this
obj = {
a: 1
b: 1
c: 1
}
and another object like this
other = {
a: 2
b: 2
}
How can I update obj to become this
result = {
a: 2
b: 2
c: 1
}
without explicitly saying
obj.a = other.a
obj.b = other.b
etc...
since I have a lot of values to update.