Search
The function compareArray should do a shallow comparison of two arrays arr1, arr2 and return true if they are identical.
compareArray
arr1
arr2
true
For example: