Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 502 Bytes

count.md

File metadata and controls

33 lines (17 loc) · 502 Bytes

@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

Defined in

src/q/arrays-compat.ts:16