javascript is equal array code example Example: check array values equal js Click to copy[1,1,1,1].every( (val, i, arr) => val === arr[0] ) // true