Joined August 2012
·

David Lee

San Francisco
·
·

Also worth considering delete_if:

["foo", "", "bar"].delete_if(&:empty?)

delete_if and reject are similar but reject returns nil if nothing is rejected (which has made a difference to me in the past)

Achievements
59 Karma
0 Total ProTip Views