(self: Array<unknown>, that: Array<unknown>)
| 316 | const equalityCache = new WeakMap<object, WeakMap<object, boolean>>() |
| 317 | |
| 318 | function compareArrays(self: Array<unknown>, that: Array<unknown>): boolean { |
| 319 | for (let i = 0; i < self.length; i++) { |
| 320 | if (!compareBoth(self[i], that[i])) { |
| 321 | return false |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | return true |
| 326 | } |
| 327 | |
| 328 | function compareTypedArrays(self: Uint8Array, that: Uint8Array): boolean { |
| 329 | if (self.length !== that.length) { |
no test coverage detected