method Console.dirConsole.dir(item?: any,options?: any,): voidDeprecatedDisplays a list of the properties of a specified object ExamplesExample 1 console.dir({ name: 'object', value: 42 }, { depth: 1 }); Parametersoptionalitem: anyObject to display optionaloptions: anyFormatting options Return Typevoid