interface Console
The Console interface provides methods for logging information to the console, as well as other utility methods for debugging and inspecting code. Methods include logging, debugging, and timing functionality.
Methods #
Tests that an expression is true. If not, logs an error message
Maintains an internal counter for a given label, incrementing it each time the method is called
#countReset(label?: string): void
Resets the counter for a given label
Outputs an error message to the console. This method routes the output to stderr, unlike other console methods that route to stdout.
Creates a new inline group in the console, indenting subsequent console messages
#groupCollapsed(...data: any[]): void
Creates a new inline group in the console that is initially collapsed
Logs the current value of a timer that was previously started
#profileEnd(label?: string): void
Stops recording a performance profile