DEV Community

Discussion on: Dumb Breakthrough moment: JSON Object Array Access

 
lvl99 profile image
Matt Scheurich

Things like Set and Map do well to hint that they are not arrays by using the size property instead of length. Should NodeList perhaps implement this prop name hint, or is it just a matter of browser support?

Thread Thread
 
nektro profile image
Meghan (she/her)

NodeList should inherit Array though. Set and Map are entirely different data structures.