download
raw
539 Bytes
export function arrayValuesMatch(
a: (string | number)[] | Uint8Array,
b: (string | number)[] | Uint8Array,
): boolean {
if (a.length === b.length) {
return !a.some((value: string | number, i: number) => value !== b[i]);
}
return false;
}
export function optionalArrayValuesMatch(
a: (string | number)[] | Uint8Array | null | undefined,
b: (string | number)[] | Uint8Array | null | undefined,
): boolean {
if (!a && !b) {
return true;
}
if (!a || !b) {
return false;
}
return arrayValuesMatch(a, b);
}

Xet Storage Details

Size:
539 Bytes
·
Xet hash:
f8c2603fb9ee10017e1e8b7a949cacd4926e30446a43c0e48d2b9b4892c50447

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.