How can I see if the array movesByX has the values but is not in the order as displayed in the checkWinningMoves fucntion how can make sure it works properly and executes the function
function checkWinningMoves() {
if (movesByX == ["box1", "box2", "box3"]) {
console.log("X is the winner")
}
}
let movesByX = [ "box2", "box1", "box3"]
checkWinningMoves();