MCPcopy Create free account
hub / github.com/Rello/analytics / isSequential

Function isSequential

js/filter.js:1374–1375  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

1372 }
1373
1374 const isSequential = (arr) => arr.every((val, i, array) => typeof val === 'number'
1375 && (i === 0 || val === array[i - 1] + 1));
1376 if (layout.columns.length === 0 && layout.measures.length === 0 && layout.notRequired.length === 0) {
1377 if (!isSequential(layout.rows)) {
1378 tableOptions.layout = layout;

Callers 1

filter.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected