MCPcopy Create free account
hub / github.com/garrytan/gstack / cmp

Function cmp

scripts/compare-pr-version.ts:54–57  ·  view source on GitHub ↗
(a: number[], b: number[])

Source from the content-addressed store, hash-verified

52 return m ? [Number(m[1]), Number(m[2]), Number(m[3]), Number(m[4])] : null;
53}
54function cmp(a: number[], b: number[]): number {
55 for (let i = 0; i < 4; i++) if (a[i] !== b[i]) return a[i] - b[i];
56 return 0;
57}
58const pPR = parseV(prVersion);
59const pNext = parseV(nextSlot);
60if (!pPR || !pNext) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected