deno.com
method Console.count
#Console.count(label?: string): void

Maintains an internal counter for a given label, incrementing it each time the method is called

Examples #

#
console.count('myCounter');
console.count('myCounter'); // Will show: myCounter: 2

Parameters #

optional
#label: string

The label to count. Defaults to 'default'

Return Type #

void