4 ms·
Things like "I want the first/last element" is still a PITA as far as I know, so lots of people use Array.from() wrappers. For all cases I used it, the performa
by Beltalowda 4y ago
Things like "I want the first/last element" is still a PITA as far as I know, so lots of people use Array.from() wrappers. For all cases I used it, the performance impact seems negligible.
I don't know why querySelectorAll() doesn't just return an array.