“any?” method
Idiomatic Ruby: writing beautiful code
TK
37413

any? is particularly useful with a block:

[1, 2, 3].any?(&:even?)
#=> true
1.step(0, 2).any?(&:even?)
#=> false
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.