AdaCAD Library Documentation - v1.1.4
    Preparing search index...

    Function countOccurrences

    • A function to count the number of occurances of a give value within an array

      Parameters

      • arr: (string | number)[]

        the 1D array to search

      • val: string | number

        the value we are seeking

      Returns number

      number of occurances