Function: getMostCommon()
getMostCommon(
vals):string|number
Defined in: utils/utils.ts:268
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