Query Select All The Things!

Written by JRCharney | Published 2019/08/27
Tech Story Tags: javascript | queryselector | queryselectorall | closures | css-selectors | dom | functional-programming | latest-tech-stories

TLDR In just one line, I create a Swiss Army knife of several functions. In older versions of this function, much of what goes in in this function was in separate functions. Closures are rather interesting. I used to do a lot of programming in C++ back in college, so you could probably say that our parent function is a template for what the child function can do. If using an extra pair of parenthesis doesn't work well for you, you could define a new function.via the TL;DR App

no story

Written by JRCharney | Web Dev Geek from St. Louis
Published by HackerNoon on 2019/08/27