Based on an array of keys, is there any way to map one object with another object?
var obj1 = { 'firstName': 'Tom', 'lastName': 'Hardy', 'age': 32 }; var obj2 = { 'firstName': 'Jon', 'lastName': 'Snow', 'age': 33 }; keys = ['lastName', 'age']; I want to update the value of lastName and age of obj1's by the obj2's value.
Is there any lodash function available for this type of mapping?