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...
I'd say I'm going to copy them next time but there is no license header...
const $ = (sel, elem = document) => [ ...elem.querySelectorAll(sel) ]
is nicer as you can use CSS selectors.