MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / defineCustomInspect

Function defineCustomInspect

packages/testlab/src/shot.ts:186–191  ·  view source on GitHub ↗
(
  obj: any,
  inspectFn: (depth: number, opts: any) => {},
)

Source from the content-addressed store, hash-verified

184const custom = Symbol.for('nodejs.util.inspect.custom');
185
186function defineCustomInspect(
187 obj: any,
188 inspectFn: (depth: number, opts: any) => {},
189) {
190 obj[custom] = inspectFn;
191}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected