There are 2 objects 1)
var obj1 = {
id: 1,
firstName: 'someFirst',
lastName: 'someLast',
status: 'active',
}
2)
var obj2 = {
firstName: 'test',
status: 'disable',
}
how can I change the key value of the first object based on the key values of the second object? Expected result is:
obj1 = {
id: 1,
firstName: 'test',
lastName: 'someLast',
status: 'disable',
}
Many thanks!