Skip to main content
Console.countReset - node__console.d.ts - Node documentation
method Console.countReset

Usage in Deno

```typescript import { type Console } from "node:node__console.d.ts"; ```
Console.countReset(label?: string): void
Resets the internal counter specific to `label`. ```js > console.count('abc'); abc: 1 undefined > console.countReset('abc'); undefined > console.count('abc'); abc: 1 undefined > ```

Parameters

optional
label: string = 'default'
The display label for the counter.

Return Type

void