MCPcopy
hub / github.com/hcengineering/platform / replacer

Function replacer

foundations/core/packages/model/src/utils.ts:82–84  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

80 ...rest
81})
82function replacer (value: any): any {
83 return value instanceof Error ? errorPrinter(value) : value
84}
85
86/**
87 * @public

Callers 1

errorFunction · 0.70

Calls 1

errorPrinterFunction · 0.70

Tested by

no test coverage detected