MCPcopy Create free account
hub / github.com/HelloCSV/HelloCSV / getFilteredExamples

Function getFilteredExamples

src/mapper/utils.ts:109–114  ·  view source on GitHub ↗
(data: CSVParsedData[], csvColumnName: string)

Source from the content-addressed store, hash-verified

107}
108
109function getFilteredExamples(data: CSVParsedData[], csvColumnName: string) {
110 return data
111 .map((d) => d[csvColumnName])
112 .filter((v) => v != null && v.trim() !== '')
113 .slice(0, NUMBER_OF_EXAMPLES_IN_MAPPING);
114}
115
116function padExamples(examples: string[]) {
117 const paddedExamples = [

Callers 1

calculateMappingExamplesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected