MCPcopy Index your code
hub / github.com/darkreader/darkreader / getFileCount

Function getFileCount

tasks/integrity.js:107–111  ·  view source on GitHub ↗
(lines, lineCount)

Source from the content-addressed store, hash-verified

105 }
106
107 function getFileCount(lines, lineCount) {
108 const count = (lines.length - 3) / lineCount;
109 assert(Number.isInteger(count));
110 return count;
111 }
112
113 function isSorted(arr) {
114 return arr.every((v, i, a) => !i || a[i - 1] <= v);

Callers 1

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected