Re:How true hackers write JavaScript
by gpvos on Wednesday September 05, 2018 @05:01AM
(#17916244)
No, it is because some array-like objects like node lists actually aren't Arrays and don't have those functions in their prototype.
[ Parent
| on HN ]
this is why I usually go for something like const $ = (el) => [...document.querySelectorAll(el)]