export const areArraysEqual = (arr1: any[] | null, arr2: any[] | null) => {
  // Check if either array is null
  if (arr1 === null || arr2 === null) {
    return false;
  }

  // Check if the arrays have the same length
  if (arr1.length !== arr2.length) {
    return false;
  }

  // Iterate through each element of the arrays
  for (let i = 0; i < arr1.length; i++) {
    // Check if the current elements of both arrays are equal
    if (JSON.stringify(arr1[i]) !== JSON.stringify(arr2[i])) {
      return false; // If not equal, return false
    }
  }

  return true;
};
