Documentation
    Preparing search index...

    Function getMostCommonProperty

    • Returns the most common value for the given property name in the given array of Record | objects.

      Type Parameters

      • T = string

      Parameters

      • objects: Record<string, any>[]
      • propertyName: string

      Returns T | null

      null if property does not exist on any object.