3 ms·
One could also save document.querySelector to $ as a constant.
by wishinghand 6y ago
One could also save document.querySelector to $ as a constant.
- vbezhenar 6y agoThat would be very confusing for unsuspecting reader. Please use something different, I would suggest `qs` for `querySelector` and `qsa` for `querySelectorAll`.
- wishinghand 6y agoThis method is not so much for multi-dev codebases but for single devs working on their personal or low-tech sites and are having a hard time letting the $('some-selector') syntax go.