I have an object:
{pm: 'val 1', dm: 'val 2', cm: 'val 3'}
and I want to loop through this and check if any of the keys are present in another object,
if they are then replace the key with the matching keys value from the other object.
{pm: 'price', dm: 'discount', cm: 'cost'}
The expected output would be:
{price: 'val 1', discount: 'val 2', cost: 'val 3'
pmis present in the first object.