3 ms·
You’re right, $('#id') would fail with Paul’s version, haha.
by nojs 3y ago
You’re right, $('#id') would fail with Paul’s version, haha.
- nailer 3y agoYou can also: if ( ! Nodelist.prototype.map ) { Nodelist.prototype.map = Array.prototype.map } So map() works. forEach() already does.