объявить 2 D Vector JS
let 2Darray = new Array(x).fill(null).map(item =>(new Array(y).fill(null)))
Uptight Unicorn
let 2Darray = new Array(x).fill(null).map(item =>(new Array(y).fill(null)))
let 2Darray = new Array(x).fill(null).map(item =>(new Array(y).fill(null)))