function equals(a, b) {
  if (a.length !== b.length) return false;
  for (let i = 0; i < b.length; i++) {
    if (a[i] !== b[i]) return false;
  }
  return true;
}
/** Check whether binary arrays are equal to each other.
 * @param a first array to check equality
 * @param b second array to check equality
 */
Check whether binary arrays are equal to each other.
@param a first array to check equality
@param b second array to check equality
Check whether binary arrays are equal to each other . @param a first array to check equality @param b second array to check equality
function equals(a, b) {
  if (a.length !== b.length) return false;
  for (let i = 0; i < b.length; i++) {
    if (a[i] !== b[i]) return false;
  }
  return true;
}
function equals ( a , b ) { if ( a . length !== b . length ) return false ; for ( let i = 0 ; i < b . length ; i ++ ) { if ( a [ i ] !== b [ i ] ) return false ; } return true ; }
Check whether binary arrays are equal to each other.
Check whether binary arrays are equal to each other .