includes() on 2d array js code example
Example 1: js 2d array includes
array.some(row => row.includes(search))
Example 2: 2d array includes array js
let arr = [[1,3], [1,1]];
if(arr.some(row => row.join(" ") === [1,3].join(" "))){
console.log("arr contains this array")
} else {
console.log("arr doesn't contain array")
}