Why wouldn't this return true? I'm trying to do it for a tictactoe game to check if somebody won, but I'm not able to check it this way. I'm able to work around it by checking each individual var in the array, but it takes up much more code than this would.
let arr = [[0, 0, 0,], [1, 1, 1]];
if (arr[0] == [0, 0, 0,]) return true;