2 ms·
I approve of those wrapper functions in the first few lines... those would have saved me so much time when I was a web dev I'd say I'm going to copy them next
by anonlastname 8y ago
I approve of those wrapper functions in the first few lines... those would have saved me so much time when I was a web dev
I'd say I'm going to copy them next time but there is no license header...
- spiralx 8y agoIf you really need a shortcut then const $ = (sel, elem = document) => [ ...elem.querySelectorAll(sel) ] is nicer as you can use CSS selectors.