Skip to content

Instantly share code, notes, and snippets.

@RickArora
Created March 1, 2019 02:27
Show Gist options
  • Save RickArora/a64384711eaa86470c8225acc4b9046a to your computer and use it in GitHub Desktop.
Save RickArora/a64384711eaa86470c8225acc4b9046a to your computer and use it in GitHub Desktop.
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
@RickArora
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment