Find the es6,se7 method to merge objects

objA = {
"D": {"title": "D", "val": 1, "unit": "bar"},
"C": {"title": "C", "val": 1, "unit": "bar"},
"B": {"title": "B", "val": 1, "unit": "bar"},
"Group A": {"title": "A"
"upper right earth pressure": {"title": "upper right earth pressure", "val": 1, "unit": "bar"},
"lower right earth pressure": {"title": "right lower earth pressure", "val": 1, "unit": "bar"},
"upper earth pressure": {"title": "upper earth pressure", "val": 1, "unit": "bar"},
"upper left earth pressure": "val": 1, "unit": "bar"},
"lower left earth pressure": {"title": "lower left earth pressure", "val": 1, "unit": "bar"}
};

objB = {
"D": 0,
"C": 0,
"B": 0,
"A": 0,
"right upper earth pressure": 0,
"right lower earth pressure": 0,
"upper right earth pressure": 0,
"left upper earth pressure": 0,
"left lower earth pressure": 0
};

how to use the es6 method to assign the value of the latter to the val? of the former
the real data structure is more complicated than this.

Mar.18,2021

for (let i in objA) {
  objA[i].val = objB[i];
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5ef8e-457fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5ef8e-457fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?