How to get elements of multiple arrays with the same index to form a new array by js

[1,1],[2,2],[3,3],[4,4]// 

function trans (arr) {
  let result = []
  arr.forEach(item => {
    item.forEach((d, i)=> {
      let a = result[i] = result[i] || []
      a.push(d)
    })
  })
  return result
}
trans([[1,2,3,4],[1,2,3,4]]) // [[1,1],[2,2],[3,3],[4,4]]
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-7b079e-1e4e0.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-7b079e-1e4e0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?