0👍
try this:
util.fillup_obj1_value_with_obj2_value = function(obj1, obj2) {
for(let item in obj2) {
obj1.hasOwnProperty(item) ? obj1[item] = obj2[item] : ''
}
}
Source:stackexchange.com
0👍
try this:
util.fillup_obj1_value_with_obj2_value = function(obj1, obj2) {
for(let item in obj2) {
obj1.hasOwnProperty(item) ? obj1[item] = obj2[item] : ''
}
}