Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

ruby all elements in array are equal

def all_equal?(arr)
    arr.uniq.size <= 1
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ruby #elements #array #equal
ADD COMMENT
Topic
Name
4+2 =