Mega Code Archive
Categories
/
Ruby
/
Array
Check for an Empty Array
x = [] puts "x is empty" if x.empty?