Module

distinctValues

Get unique values for a specific column

Parameters:
Name Type Description
columnName string

column name

appEnv appEnv

app Environment from setup

table casTable | computeTable

Optionally point to a different table

  • {an array of unique values }
promise
Example
let selectList = await distinctValues('company', appEnv))
 This is useful to get a list of unique values for selected columns.
 {company:['IBM', 'Microsoft', 'SAS'] }