Array operation problem

let arr1 = ["0", "aaa", "bbb", "123"];
let arr2 = ["ccc", "ddd", "eee", "fff"];
The

code is as above, and the requirements are as follows:
if a number appears in arr1, the corresponding subscript array in arr2 is deleted.

for example:

let arr1 = ["aaa", "bbb"];
let arr2 = ["ddd", "eee"];
May.07,2021

const getNewArray = (arr1, arr2) => {
  let total = 0;
  arr1.forEach((el, i) => {
    if(/\d/.test(el)) {
      arr2.splice(i - total, 1)
      totalPP;
    }
  })
  return 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-1b36e50-2c059.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-1b36e50-2c059.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?