Skip to main content
method Console.dir
Console.dir(
obj: any,
options?: InspectOptions,
): void
Deprecated

Uses util.inspect() on obj and prints the resulting string to stdout. This function bypasses any custom inspect() function defined on obj.

Parameters

obj: any
optional
options: InspectOptions

Return Type

void
Back to top