javascript - how to clear content inside of `console.group`?

Viewed 127

I want to clear all of the content inside a console.group without clear another console.group content?

for example, I want to clear a section in the console without clearing the b section content?

console.group('a');
console.log('a section');
console.groupEnd();

console.group('b');
console.log('b section');
console.groupEnd();

I tried clear the console with console.clear() but this function clear all of the page!

Is it possible at all? It would be highly appreciated if anyone can advise me!

0 Answers
Related