Because of the holidays and my obligation to family this tibit is pretty straight forward and will be edited at a later date. Let’s observe how any? works with Ruby.

%w[ant bear cat].any? { |word| word.length >= 3 } #=> true
%w[ant bear cat].any? { |word| word.length >= 4 } #=> true
[nil, true, 99].any?                              #=> true

Leave a Reply

Your email address will not be published. Required fields are marked *