Skip to content

tapInspect

tapInspect<A>(options?): (a) => A

Defined in: Composition/tap.ts:97

Performs a deep structured inspect formatting on the piped value, returning it unchanged. In Node.js environments, this utilizes Node’s node:util inspect utility dynamically without static imports. In non-Node environments, it falls back to structured JSON formatting.

A

Options

(a) => A

pipe(
  { user: { name: "Alice", details: { age: 30 } } },
  tapInspect({ label: "User Object", depth: 2 })
);