Files
blitzkit/packages/scripts/src/core/github/compareUint8Arrays.ts
T
2025-06-07 12:35:23 -05:00

10 lines
229 B
TypeScript

export function compareUint8Arrays(a: Uint8Array, b: Uint8Array) {
if (a.length !== b.length) return false;
for (let index = 0; index < a.length; index++) {
if (a[index] !== b[index]) return false;
}
return true;
}