node-noise
Version:
22 lines • 511 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.equals = void 0;
/**
* Returns true if the two passed Uint8Arrays have the same content
*/
function equals(a, b) {
if (a === b) {
return true;
}
if (a.byteLength !== b.byteLength) {
return false;
}
for (var i = 0; i < a.byteLength; i++) {
if (a[i] !== b[i]) {
return false;
}
}
return true;
}
exports.equals = equals;
//# sourceMappingURL=equals.js.map