any? function

any? returns true if at least one item of a scope satisfies a condition, and false if not.

Syntax

any?(scope, condition)

Arguments

Examples

  • if at least one ADMDeal has an MRR greater than 5  any?(ADMDeals, deal.MRR > 5) => true

Did this help answer your question?

thumbs up
thumbs down

Thanks for the feedback! 🙏🏽