How to merge the objects in the corresponding indexes of arr and arr1 into arr2

var arr=[{a:1,b:2},{a:2,b:3}]
var arr1 = [{c:1,d:2},{c:3,d:4}]


arr2=[{a:1,b:2,c:1,d:2},{a:2,b:3,c:3,d:4}]
Apr.05,2021

arr.forEach((k,i) => {
    Object.assign(k,arr1[i]);
})
The arr obtained by

is arr2,arr1 invariant

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-1b387a9-2b47e.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-1b387a9-2b47e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?