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

Function structureKeys

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

Source from the content-addressed store, hash-verified

431 * @since 2.0.0
432 */
433export const structureKeys = (o: object, keys: Iterable<PropertyKey>) =>
434 hashUnordered(12289, keys, (key) => combineDataFirst(hash(key), hash((o as any)[key])))
435
436/**
437 * Computes a structural hash for an object using Effect's object key collection.

Callers 1

structureFunction · 0.85

Calls 2

hashUnorderedFunction · 0.85
hashFunction · 0.70

Tested by

no test coverage detected