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

    Type Parameters

    • In

    Parameters

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

          • item: In
          • index: number

          Returns boolean

    Returns number

    how many elements in the iterable match the predicate.