MCPcopy Create free account
hub / github.com/Effect-TS/effect / wrap

Function wrap

packages/effect/src/Formatter.ts:116–119  ·  view source on GitHub ↗
(v: unknown, body: string)

Source from the content-addressed store, hash-verified

114 const ind = (d: number) => gap.repeat(d)
115
116 const wrap = (v: unknown, body: string): string => {
117 const ctor = (v as any)?.constructor
118 return ctor && ctor !== Object.prototype.constructor && ctor.name ? `${ctor.name}(${body})` : body
119 }
120
121 const ownKeys = (o: object): Array<PropertyKey> => {
122 try {

Callers 1

recurFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected