code: def napi_compare(left, ops, comparators, **kwargs):
      
  
      values = []
      for op, right in zip(ops, comparators):
          value = COMPARE[op](left, right)
          values.append(value)
          left = right
      result = napi_and(values, **kwargs)
      if isinstance(result, ndarray):
          return result
      else:
          return bool(result)
docs: Make pairwise comparisons of comparators.