function (list
as list, optionalequationCriteria
as nullable any) as nullable any
list
. If the list is empty an exception is thrown. If multiple items appear with the same maximum frequency, the last one is chosen. An optional comparisonCriteria
value, equationCriteria
, can be specified to control equality testing.{"A", 1, 2, 3, 3, 4, 5}
.3
{"A", 1, 2, 3, 3, 4, 5, 5}
.5