MCPcopy Create free account
hub / github.com/microsoft/SandDance / getDistinctValues

Function getDistinctValues

docs/app/js/sanddance-app.js:12931–12939  ·  view source on GitHub ↗
(data, columnName)

Source from the content-addressed store, hash-verified

12929 return options;
12930}
12931function getDistinctValues(data, columnName) {
12932 const distinctMap = {};
12933 for(let i = 0; i < data.length; i++){
12934 let row = data[i];
12935 let value = row[columnName];
12936 distinctMap[value] = true;
12937 }
12938 return Object.keys(distinctMap).sort();
12939}
12940function getValues(ex, column, data, autoCompleteDistinctValues) {
12941 const stats = column && column.stats;
12942 if (stats && stats.distinctValueCount < maxAutocomplete) {

Callers 1

getValuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected