2 ms·
If anything, jQuery allowed things to be more FP-oriented. I don't remember who said it, but "jQuery selectors are lenses for the DOM" is one of the better obs
by chuckadams 1y ago
If anything, jQuery allowed things to be more FP-oriented. I don't remember who said it, but "jQuery selectors are lenses for the DOM" is one of the better observations about jQuery I've read. A lot of jQuery is unnecessary in modern JS, but we still don't have those sweet selector semantics, and you're still expected to loop over everything by hand. And as a continuing middle finger to the DX, NodeLists don't even support the HOFs of the Array interface and have to be converted to arrays by hand.