Having an issue comparing two 2D arrays in javascript, looking to output "true" if the arrays are the same.
This is the code I experimented with:
`
function check(){
if (data.every() === solution.every()){
alert("example");
} else {
console.log("Data Array: " + data);
console.log("Solution Array: " + solution);
}
}
`
It seems my solution only functions with two 1D arrays. Seeking help and guidance from someone knowledgeable in this area.
Note: Utilizing jquery and native js only.
Thank you in advance.
~Luca