3 ms·
These libraries appear to be falling back on querySelectorAll. Why use something like this if such facilities exist?
by kr0 11y ago
These libraries appear to be falling back on querySelectorAll. Why use something like this if such facilities exist?
- deckar01 11y agoThe result of `querySelectorAll()` is a `NodeList` which does not have a funtional iterable interface without additional transformation [0]. `Array.prototype.slice.call(document.querySelectorAll(selector)).forEach(cb)` vs `$(selector).each(cb)` [0] https://developer.mozilla.org/en-US/docs/Web/API/NodeList https://developer.mozilla.org/en-US/docs/Web/API/NodeList
- deleted 11y ago[deleted]