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

Function isSequential

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

Source from the content-addressed store, hash-verified

684 }
685
686 const isSequential = (arr) => arr.every((val, i, array) => i === 0 || (val === array[i - 1] + 1));
687 if (layout.columns.length === 0 && layout.measures.length === 0 && layout.notRequired.length === 0) {
688 if (!isSequential(layout.rows)) {
689 tableOptions.layout = layout;

Callers 1

filter.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected