MCPcopy Create free account
hub / github.com/Effect-TS/effect / compareArrays

Function compareArrays

packages/effect/src/Equal.ts:307–318  ·  view source on GitHub ↗
(self: Array<unknown>, that: Array<unknown>)

Source from the content-addressed store, hash-verified

305}
306
307function compareArrays(self: Array<unknown>, that: Array<unknown>): boolean {
308 if (self.length !== that.length) {
309 return false
310 }
311 for (let i = 0; i < self.length; i++) {
312 if (!compareBoth(self[i], that[i])) {
313 return false
314 }
315 }
316
317 return true
318}
319
320function compareTypedArrays(self: Uint8Array, that: Uint8Array): boolean {
321 if (self.length !== that.length) {

Callers 1

compareStructureFunction · 0.85

Calls 1

compareBothFunction · 0.85

Tested by

no test coverage detected