• Count the number of objects in the iterable matching the predicate.

    Type Parameters

    • T

    Parameters

    • itr: Iterable<T>

      iterable object or array

    • predicate: ((item) => any)

      predicate fn

        • (item): any
        • Parameters

          • item: T

          Returns any

    Returns number