MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / objectValue

Function objectValue

apps/cloud/src/observability/error-logging.ts:15–16  ·  view source on GitHub ↗
(value: unknown, key: string)

Source from the content-addressed store, hash-verified

13const loggedCause = (cause: Cause.Cause<unknown>): string => truncate(Cause.pretty(cause));
14
15const objectValue = (value: unknown, key: string): unknown =>
16 Predicate.hasProperty(value, key) ? value[key] : undefined;
17
18const numberValue = (value: unknown, key: string): number | undefined => {
19 const field = objectValue(value, key);

Callers 3

numberValueFunction · 0.85
stringValueFunction · 0.85
httpStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected