Documentation / @super-line/core / countValues
Function: countValues()
countValues(
rows,field):ValueCount[]
Defined in: packages/core/src/query.ts:208
Count rows per value of field: a scalar is its own group, null included; an array counts the row once under each distinct scalar element (what has matches); a missing field, object or empty array joins no group. Unordered — see orderValueCounts.
Parameters
rows
readonly unknown[]
field
string