DEV Community

Discussion on: Comparing Arrays using isArrayEquals() method

Collapse
 
avalander profile image
Avalander

Why would you consider two arrays with the same elements in different order equal?

Collapse
 
ra9 profile image
Carlos Nah

Yeah well, I think it doesn't matter which order it is in what should matters is if the elements in those arrays are the same.

Collapse
 
thefern profile image
Fernando B 🚀

could have been sorted, or just appended in a different order.