@serenity-is/corelib / count
Function: count()
count<
TItem>(array,predicate):number
Counts number of array elements that matches a given predicate.
Type Parameters
• TItem
Parameters
array
TItem[]
Array to test.
predicate
(x) => boolean
Predicate to test elements.
Returns
number