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

Function numberValue

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

Source from the content-addressed store, hash-verified

16 Predicate.hasProperty(value, key) ? value[key] : undefined;
17
18const numberValue = (value: unknown, key: string): number | undefined => {
19 const field = objectValue(value, key);
20 return typeof field === "number" ? field : undefined;
21};
22
23const stringValue = (value: unknown, key: string): string | undefined => {
24 const field = objectValue(value, key);

Callers 1

httpStatusFunction · 0.85

Calls 1

objectValueFunction · 0.85

Tested by

no test coverage detected