1 | function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {
|
2 | return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));
|
3 | }
|
4 | export default areArraysEqual; |
\ | No newline at end of file |