MCPcopy Create free account
hub / github.com/effect-app/libs / structureKeys

Function structureKeys

repos/effect/packages/effect/src/Hash.ts:430–436  ·  view source on GitHub ↗
(o: object, keys: Iterable<PropertyKey>)

Source from the content-addressed store, hash-verified

428 * symbol keys and relevant prototype keys for non-plain objects.
429 *
430 * **Example** (Hashing object structures)
431 *
432 * ```ts import.meta.vitest
433 * import { Hash } from "effect"
434 *
435 * const obj1 = { name: "John", age: 30 }
436 * const obj2 = { name: "Jane", age: 25 }
437 * const obj3 = { name: "John", age: 30 }
438 *
439 * Hash.structure(obj1) // => -590673747

Callers 1

structureFunction · 0.85

Calls 3

optimizeFunction · 0.85
combineFunction · 0.70
hashFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…