UNPKG

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