I have two objects:
let obj1 = { key1: 'someValue', key2: 'someValue2'}
let obj2 = { someValue: 'otherValue', someValue2: 'otherValue2'}
values of the obj1 is actually a key in the obj2.
I want a new object as let obj3 = { key1: 'otherValue', key2: 'otherValue2'}
I tried with Object.keys and Object.values but didn't succeed. Can you guys help me out?