(self: Uint8Array, that: Uint8Array)
| 326 | } |
| 327 | |
| 328 | function compareTypedArrays(self: Uint8Array, that: Uint8Array): boolean { |
| 329 | if (self.length !== that.length) { |
| 330 | return false |
| 331 | } |
| 332 | for (let i = 0; i < self.length; i++) { |
| 333 | if (self[i] !== that[i]) { |
| 334 | return false |
| 335 | } |
| 336 | } |
| 337 | return true |
| 338 | } |
| 339 | |
| 340 | function compareRecords( |
| 341 | self: Record<PropertyKey, unknown>, |