Skip to main content
method Console.countReset
Console.countReset(label?: string): void

Resets the counter for a given label

Examples

Example 1

console.count('myCounter');
console.countReset('myCounter'); // Resets to 0

Parameters

optional
label: string

The label to reset. Defaults to 'default'

Return Type

void
Back to top