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?
size
length
NodeList should inherit Array though. Set and Map are entirely different data structures.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Things like Set and Map do well to hint that they are not arrays by using the
size
property instead oflength
. Should NodeList perhaps implement this prop name hint, or is it just a matter of browser support?NodeList should inherit Array though. Set and Map are entirely different data structures.