From Dev.to
What JavaScript using disposes after returns and exceptions: nine checks
using registers an object with a disposal method in a scope and calls cleanup when that scope ends. When several resources were registered, they were disposed in reverse acquisition order. An early re...
