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

Function numberValue

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

Source from the content-addressed store, hash-verified

5 Predicate.hasProperty(value, key) ? value[key] : undefined;
6
7const numberValue = (value: unknown, key: string): number | undefined => {
8 const field = objectValue(value, key);
9 return typeof field === "number" ? field : undefined;
10};
11
12const stringValue = (value: unknown, key: string): string | undefined => {
13 const field = objectValue(value, key);

Callers 1

httpStatusFunction · 0.85

Calls 1

objectValueFunction · 0.85

Tested by

no test coverage detected