Empty toast container function Post author By Amer Sikira Post date November 22, 2021 function isEmpty(selector) { return document.querySelector(selector).innerHTML.trim().length == 0; } ← Create and remove toast → Remove toast with isEmpty function