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

Function compareArrays

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

Source from the content-addressed store, hash-verified

316const equalityCache = new WeakMap<object, WeakMap<object, boolean>>()
317
318function 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
328function compareTypedArrays(self: Uint8Array, that: Uint8Array): boolean {
329 if (self.length !== that.length) {

Callers 1

compareObjectsFunction · 0.85

Calls 1

compareBothFunction · 0.85

Tested by

no test coverage detected