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

Function compareTypedArrays

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

Source from the content-addressed store, hash-verified

318}
319
320function compareTypedArrays(self: Uint8Array, that: Uint8Array): boolean {
321 if (self.length !== that.length) {
322 return false
323 }
324 for (let i = 0; i < self.length; i++) {
325 if (self[i] !== that[i]) {
326 return false
327 }
328 }
329 return true
330}
331
332function compareRecords(
333 self: Record<PropertyKey, unknown>,

Callers 1

compareStructureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected