Is there a way to find the index of an array within an array?

It is related to this:

Your original code is asking if any of the array elements are stored in the same place as the array you created for the argument of indexOf, and none of those memory addresses will match up.