(lines, lineCount)
| 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); |
no test coverage detected