MCPcopy Create free account
hub / github.com/alibaba/open-code-review / firstDiffIndex

Function firstDiffIndex

scripts/github-actions/check-translation-sync.js:109–113  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

107}
108
109function firstDiffIndex(a, b) {
110 const n = Math.min(a.length, b.length);
111 for (let i = 0; i < n; i++) if (a[i] !== b[i]) return i;
112 return n; // sequences agree up to the shorter one's length
113}
114
115function describeHeading(h) {
116 if (!h) return "no heading (document ends)";

Callers 1

compareReadmeStructuresFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected