Hi I want to check if "arr" includes one of the sub arrays of "arrNested" and get a boolean value.
I want something like arrNested.includes(arr) that works for nested arrays
console.log(arrNested.includes(arr)) returns false and I don't know why
let arr = [1,2,3]
let arrNested = [
[1,2,3],
[4,5,6],
[7,8,9],
]
[1, 2, 3] == [3, 2, 1]?console.log(arrNested.includes(arr))returnsfalseand I don’t know why” — duplicate of Why can't I use Array#includes for a nested array?.