function allEqual(values) {
    for (var i = 0; i < values.length; i++) {
      if (values[i] === null) {
        return false;
      }
      for (var j = 0; j < i; j++) {
        if (values[j] !== values[i]) {
          return false;
        }
      }
    }
    return true;
  }
/**
   * Determine if all the values in an Array are all equal to each other.
   * @param values
   * @returns {boolean}
   */
Determine if all the values in an Array are all equal to each other.
@param values
@returns {boolean}
Determine if all the values in an Array are all equal to each other . @param values @returns { boolean }
function allEqual(values) {
    for (var i = 0; i < values.length; i++) {
      if (values[i] === null) {
        return false;
      }
      for (var j = 0; j < i; j++) {
        if (values[j] !== values[i]) {
          return false;
        }
      }
    }
    return true;
  }
function allEqual ( values ) { for ( var i = 0 ; i < values . length ; i ++ ) { if ( values [ i ] === null ) { return false ; } for ( var j = 0 ; j < i ; j ++ ) { if ( values [ j ] !== values [ i ] ) { return false ; } } } return true ; }
Determine if all the values in an Array are all equal to each other.
Determine if all the values in an Array are all equal to each other .