Lucian Ghinda
All about coding

All about coding

Follow
homeRuby/Rails Tips and TILShortsEssaysAbout meWeekly Ruby NewsletterBlog Newsletter
Tag

TIL

#til

More content

Read more stories on Hashnode


Articles with this tag

Ruby: Using .all? when the variable can be an empty array

Dec 10, 20211 min read

Context You have an array of hashes and want to check if all elements are satisfying a condition. TIL You might want to do this in Ruby: objects.all?...

Ruby: Using .all? when the variable can be an empty array