isDestroyed

open external fun isDestroyed(): Boolean(source)

Whether the window is destroyed.

!NOTE Once a window is destroyed, accessing most of its other properties and methods throws Object has been destroyed, so callbacks that may run after the window is gone should guard with isDestroyed().