In javascript there is function Array.prototype.includes() which is useful when we want to find some value in array. It's working fine when we search string, object or number value. However it seems not working when we trying to find an array in array
let internalArray = ["a","b"]
let arrayOfArrays = [internalArray]
let result = arrayOfArrays.includes(["a","b"]);
But this is working :D
let internalArray = ["a","b"]
let arrayOfArrays = [internalArray]
let result = arrayOfArrays.includes(internalArray);
So it seems that when we use includes function javascript is comparing the array references but not the values i am right?
The next question is - how to find an array in array in another way - which compares the internal values?