MCPcopy Index your code
hub / github.com/Effect-TS/effect / wrap

Function wrap

packages/effect/src/Inspectable.ts:87–90  ·  view source on GitHub ↗
(v: unknown, body: string)

Source from the content-addressed store, hash-verified

85 const ind = (d: number) => gap.repeat(d)
86
87 const wrap = (v: unknown, body: string): string => {
88 const ctor = (v as any)?.constructor
89 return ctor && ctor !== Object.prototype.constructor && ctor.name ? `${ctor.name}(${body})` : body
90 }
91
92 const ownKeys = (o: object): Array<PropertyKey> => {
93 try {

Callers 1

goFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected