— You even have item(n)
if you want integer accessors
— So it's like putting a band aid on without even having an injury haha
— Also with the iterator your code is already polymorphic between a lot of data structures
— If you are using Symbol.iterator
then your loops can accept a NodeList or Array easily
— It depends on what function created it I think
— As always the DOM API still has inconsistencies lol
— Thankfully the specification is clear about what is "old style"
— Https://github.com/Floofies/Differentia.js/blob/master/CONTRIBUTING.md