Message from JavaScript discussions

November 2017

— So they are the user in this case


It's very cool because you can easily make a lot polymorphic with less code... template engine can process an Array of Nodes or a NodeList equally with the same loop, and no glue

— Whereas, ofc, a NodeList doesn't have the brackets accessor, while an Array does... making them quite different when you try to write glue

Message permanent page

— You get nodeList.item(int)

— Ugh

— But can't you call / apply map to a NodeList?

— And forEach / etc

— Sure, but that's an additional data structure where there was not a need for one

—, callback)

— You could do Array.from on it

— Yeah, that is very true

— Since that method accepts iterators