function createArray2d(rows, cols) {
return Array.from({ length: rows }, _ => Array(cols).fill());
}
2 Likes
function createArray2d(rows, cols) {
return Array.from({ length: rows }, _ => Array(cols).fill());
}