Vinyl
    Preparing search index...

    Function countElements

    • Counts the number of elements in an array that return true when passed to a predicate function.

      Type Parameters

      • T

      Parameters

      • array: ArrayLike<T>
      • predicate: (value: T, index: number, obj: ArrayLike<T>) => boolean

      Returns number