-
-
Save RickArora/a64384711eaa86470c8225acc4b9046a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def adult_in_group?(people) | |
people.each do |arr| | |
arr.each do |key, value| | |
if(!(key.kind_of?(String))) | |
if(value >= 18) | |
return true | |
end | |
end | |
end | |
end | |
return false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
def adult_in_group?(people)
people.each do |arr|
arr.each do |key, value|
# if(!(value.kind_of?(String)))
if(arr[:age] >= 18)
return true
# end
end
end
end
return false
end