function areRangesEqual(array1, array2) {
  if (array1.length != array2.length)
    return false;
  for (let i = 0; i < array1.length; i++)
    if (array1[i].from != array2[i].from || array1[i].to != array2[i].to) {
      return false;
    }
  return true;
}
/**
 * Returns true if the contents of the two page ranges are equal.
 * @param {Array} array1 The first array.
 * @param {Array} array2 The second array.
 * @return {boolean} true if the arrays are equal.
 */
Returns true if the contents of the two page ranges are equal.
@param {Array} array1 The first array.
@param {Array} array2 The second array.
@return {boolean} true if the arrays are equal.
Returns true if the contents of the two page ranges are equal . @param { Array } array1 The first array . @param { Array } array2 The second array . @return { boolean } true if the arrays are equal .
function areRangesEqual(array1, array2) {
  if (array1.length != array2.length)
    return false;
  for (let i = 0; i < array1.length; i++)
    if (array1[i].from != array2[i].from || array1[i].to != array2[i].to) {
      return false;
    }
  return true;
}
function areRangesEqual ( array1 , array2 ) { if ( array1 . length != array2 . length ) return false ; for ( let i = 0 ; i < array1 . length ; i ++ ) if ( array1 [ i ] . from != array2 [ i ] . from || array1 [ i ] . to != array2 [ i ] . to ) { return false ; } return true ; }
Returns true if the contents of the two page ranges are equal.
Returns true if the contents of the two page ranges are equal .