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

Function detectNegative

packages/sanddance-specs/src/inference.ts:131–136  ·  view source on GitHub ↗
(column: Column, data: object[])

Source from the content-addressed store, hash-verified

129}
130
131function detectNegative(column: Column, data: object[]) {
132 for (let i = 1; i < data.length; i++) {
133 if (data[i][column.name] < 0) return true;
134 }
135 return false;
136}
137
138function detectSequentialColumn(column: Column, data: object[]): boolean {
139 if (data.length < 2) return false;

Callers 1

getStatsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected