• Count values of a list of things also works with generators.

    Type Parameters

    • T

    Parameters

    • ts: Iterable<T>

      list of things

    • pred: ((t) => boolean) = exists

      optional: function to check if thing is valid

        • (t): boolean
        • Parameters

          • t: T

          Returns boolean

    Returns number

    the number of valid things

Generated using TypeDoc