KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it bad to check if an array is not empty by using any? method? a = [1,2,3] a.any? => true a.clear a.any? => false Or is it better to use unless a.empty? ?
Tags (comma-separated)
Save Edits
Cancel