mazhaka,
const length = 10;
const random = (a, b) => () => a + (Math.random() * (b - a))|0;
const ar = () => Array.from({length}, random(-20, 20));
let myArray = Array.from({length}, ar);
console.table(myArray)
let arrColl = Array.from({length}, (_, i) => 0 <= myArray.reduce((a, b) => a + b[i], 0));
console.table(arrColl)
myArray = myArray.map(a => a.filter((_, i) => arrColl[i]))
console.table(myArray)