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

Function compareTypedArrays

packages/effect/src/Equal.ts:328–338  ·  view source on GitHub ↗
(self: Uint8Array, that: Uint8Array)

Source from the content-addressed store, hash-verified

326}
327
328function 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
340function compareRecords(
341 self: Record<PropertyKey, unknown>,

Callers 1

compareObjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected