Copy-to-clipboard helpers feel almost primitive today, yet they still pop up in projects every week. The gist you shared shows the classic pattern that dominated for years:
// Legacy helper
function copyToClipboard(text) {
const el = document.creat...