Skip to main content
method Console.groupCollapsed
Console.groupCollapsed(...data: any[]): void

Creates a new inline group in the console that is initially collapsed

Examples

Example 1

console.groupCollapsed('Details');
console.log('Hidden until expanded');
console.groupEnd();

Parameters

<span>...data</span>: any[]

Return Type

void
Back to top