(self: Uint8Array, that: Uint8Array)
| 318 | } |
| 319 | |
| 320 | function compareTypedArrays(self: Uint8Array, that: Uint8Array): boolean { |
| 321 | if (self.length !== that.length) { |
| 322 | return false |
| 323 | } |
| 324 | for (let i = 0; i < self.length; i++) { |
| 325 | if (self[i] !== that[i]) { |
| 326 | return false |
| 327 | } |
| 328 | } |
| 329 | return true |
| 330 | } |
| 331 | |
| 332 | function compareRecords( |
| 333 | self: Record<PropertyKey, unknown>, |