Hex Core JS
    Preparing search index...

    Function count

    • Returns the number of elements in the given array that match the given filter condition. Is an optimized form of array.filter().length.

      Type Parameters

      • T

      Parameters

      • array: T[]

        The array to count.

      • filter: (e: T) => boolean

        The filter function to select elements.

      Returns number