const arr = [
[1, '*', 5, 8, '*', 2, '*', '*', '*'],
['*', 9, '*', '*', 7, 6, 4, '*', 5],
[2, '*', '*', 4, '*', '*', 8, 1, 9],
['*', 1, 9, '*', '*', 7, 3, '*', 6],
[7, 6, 2, '*', 8, 3, '*', 9, '*'],
['*', '*', '*', '*', 6, 1, '*', 5, '*'],
['*', '*', 7, 6, '*', '*', '*', 3, '*'],
[4, 3, '*', '*', 2, '*', 5, '*', 1],
[6, '*', '*', 3, '*', 8, 9, '*', '*'],
];
 
 
function getColumnAbcentNums(boardArr, columnInd) {
const example = [1, 2, 3, 4, 5, 6, 7, 8, 9];
const colArr = [
boardArr[0][columnInd],
boardArr[1][columnInd],
boardArr[2][columnInd],
boardArr[3][columnInd],
boardArr[4][columnInd],
boardArr[5][columnInd],
boardArr[6][columnInd],
boardArr[7][columnInd],
boardArr[8][columnInd],
];
console.log({colArr})
return example.filter((el, ind) => !colArr.includes(el));
}
 
console.log(getColumnAbcentNums(arr,0))
Code will run automatically after changes.
Code runs in an isolated environment.