• Counts how many elements in the iterable match the predicate.

    Type Parameters

    • In

    Parameters

    • iterable: Iterable<In>
    • cb: (item: In, index: number) => boolean

    Returns number

    how many elements in the iterable match the predicate.