The methods Any
, and All
determine of all elements or any elements match a condition.
This sample uses Any
to determine if any of the words in the array contain the substring 'ei'.
This sample uses Any
to return a grouped a list of products only for categories that have at least one product that is out of stock.
This sample uses All
to determine whether an array contains only odd numbers.
This sample uses All
to return a grouped a list of products only for categories that have all of their products in stock.
Next: Aggregate operations » Previous: Generate sequence elements »