compare()

Compares two arrays to see if they are equal in terms of length and content.
const arr1 = [{ id: 1, name: 'Apple' }]
const arr2 = [{ id: 1 }]
arr1.compare(arr2)