TLDR Dev · ARTICLES & TUTORIALS

IT'S ABOUT TO GET A LOT EASIER FOR YOUR JAVASCRIPT TO CLEAN UP AFTER ITSELF

piccalil.li14 min read

Summary from the TLDR Dev newsletter

JavaScript is getting a using keyword, the first new way to declare a variable since const and let in 2015. It automatically cleans up resources (file handles, connections, and streams) when they go out of scope, so you don't have to remember to call close() or abort() yourself. It already works in every major browser except Safari.