A collection of solutions to small problems I've faced in the past. They're all copy-paste ready 😉
NPM - Set version to latest
How to set a published package version to latest
Union to Intersection
Convert union to intersection types
Perform disposable side-effects when an element's node is connected.
A react-friendly alternative to window.setInterval