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

Function detectSequentialColumn

docs/tests/v2/es6/js/sanddance.js:147878–147887  ·  view source on GitHub ↗
(column, data)

Source from the content-addressed store, hash-verified

147876}
147877
147878function detectSequentialColumn(column, data) {
147879 if (data.length < 2) return false;
147880 let colname = column.name;
147881
147882 for (let i = 1; i < data.length; i++) {
147883 if (data[i][colname] !== data[i - 1][colname] + 1) return false;
147884 }
147885
147886 return true;
147887}
147888},{"@msrvida/vega-deck.gl":"vVi8"}],"e0Uq":[function(require,module,exports) {
147889"use strict";
147890

Callers 1

getStatsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected