You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910111213141516 |
- /**
- * Compares two byteArrays for equality.
- */
- export function isArrayEqual(a1, a2) {
- if (a1.byteLength !== a2.byteLength) {
- return false;
- }
- for (let i = 0; i < a1.byteLength; i++) {
- if (a1[i] !== a2[i]) {
- return false;
- }
- }
-
- return true;
- }
|