deno.com
method Console.dir
#Console.dir(
item?: any,
options?: any,
): void

Displays a list of the properties of a specified object

Examples #

#
console.dir({ name: 'object', value: 42 }, { depth: 1 });

Parameters #

optional
#item: any

Object to display

optional
#options: any

Formatting options

Return Type #

void