Equivalent of destructors in JavaScript’s object model May 8, 2023 by Tarik MDN is a nice resource for JS. No, there is nothing like calling a function when an object ceases.