MCPcopy Create free account
hub / github.com/anomalyco/opencode / plain

Function plain

packages/core/src/observability/logging.ts:38–42  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

36}
37
38function plain(input: unknown): input is Record<string, unknown> {
39 if (input === null || typeof input !== "object" || Array.isArray(input)) return false
40 const prototype = Object.getPrototypeOf(input)
41 return prototype === Object.prototype || prototype === null
42}
43
44function format(input: unknown) {
45 const value = typeof input === "string" ? input : Formatter.format(input)

Callers 2

formatterFunction · 0.85
flattenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected