Hacker News new | ask | show | jobs
by dschooh 1555 days ago
[] is truthy in Ruby but there is #empty? on collection types. Rails also has #blank? which additionally works on false and nil.