You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
export function areArraysEqual(array1, array2, itemComparer = (a, b) => a === b) {
|
|
return array1.length === array2.length && array1.every((value, index) => itemComparer(value, array2[index]));
|
|
} |