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.

utils.js 299B

12345678910111213141516
  1. /**
  2. * Compares two byteArrays for equality.
  3. */
  4. export function isArrayEqual(a1, a2) {
  5. if (a1.byteLength !== a2.byteLength) {
  6. return false;
  7. }
  8. for (let i = 0; i < a1.byteLength; i++) {
  9. if (a1[i] !== a2[i]) {
  10. return false;
  11. }
  12. }
  13. return true;
  14. }