On the problem of for Loop traversal js

let arr1 = ["", "", "", ...]
let arr2 = [{1: "", 2: "A", 3: "205"},{1: "", 2: "", 3: "220"}, ...]
let arr = []

//
[
 {
   "": "",
   "": "A",
   "": "205"
 },
 {
   "": "",
   "": "",
   "": "220"
 },
 ...
]
Mar.13,2021

let arr1 = ["", "", ""]
let arr2 = [{1: "", 2: "A", 3: "205"},{1: "", 2: "", 3: "220"}]

function trans (keys, list) {
  return list.map(item => {
    let obj = {}
    keys.forEach((key, i) => {
      obj[key] = item[i + 1]
    })
    return obj
  })
}
trans(arr1, arr2)
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-1e5ad70-455dc.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-1e5ad70-455dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?