The console.groupEnd() static method exits the current inline group in the console.
console.groupEnd()
MDN Reference