Playing with arrays

Check if all array elements are equals

arr = [0, 0, 0, 0, 0, 0, 0]
puts true if arr.uniq.length == 1

Array includes a sub array

(subarray & array) == array