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

Function get

packages/infra/src/Store/utils.ts:8–10  ·  view source on GitHub ↗
(obj: any, path: string)

Source from the content-addressed store, hash-verified

6
7/** Traverse an object by a dot-separated path string, e.g. `"a.b.c"`. */
8export function get(obj: any, path: string): any {
9 return path.split(".").reduce((res: any, key: string) => (res != null ? res[key] : res), obj)
10}
11
12export const makeETag = <E extends PersistenceModelType<{}>>(
13 { _etag, ...e }: E

Callers 6

computeProjectionValueFunction · 0.90
evalExprFunction · 0.90
computeAggregateValueFunction · 0.90
selectPerRowFunction · 0.90
memFilterFunction · 0.90
filterStatementFunction · 0.90

Calls 1

splitMethod · 0.65

Tested by

no test coverage detected