Console.countReset - Node documentation
method Console.countReset

Usage in Deno

import { type Console } from "node:console";
Console.countReset(label?: string): void

Resets the internal counter specific to label.

> 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