var qsa = function(sel){return document.querySelectorAll(sel)};
However, it does not work with: var subqsa = function(el,sel){return el.querySelectorAll(sel);} var queryAll = document.querySelectorAll.bind(document);What am I missing here
An empty NodeList[1] to be precise, which is sort of kind of like an array in that it has a length property and you can access its elements with index notation (`nodeList[0]`), but it doesn't inherit from Array.prototype, so it doesn't support methods like `forEach` or `map`.
[1] https://developer.mozilla.org/en-US/docs/Web/API/NodeList
https://nicosantangelo.github.io/weaintfoundshit.js/interact...
In jQuery, a selector which doesn't match will evaluate to true, where as .length would be 0. This is a source of bugs, I'm sure, especially for beginners.