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