check values in array are equal to some number code example Example: check array values equal js [1,1,1,1].every( (val, i, arr) => val === arr[0] ) // true