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

    Function getMostCommon

    • given a list of values, return the value that occurs the most. If there are two values that share the most, it will return the first one encountered in the array.

      Parameters

      • vals: (string | number)[]

      Returns string | number

      the most common value found in the array