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

Function objectValue

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

Source from the content-addressed store, hash-verified

2import { HttpRouter, HttpServerRequest } from "effect/unstable/http";
3
4const objectValue = (value: unknown, key: string): unknown =>
5 Predicate.hasProperty(value, key) ? value[key] : undefined;
6
7const numberValue = (value: unknown, key: string): number | undefined => {
8 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