Re: [selectors-api] Return an Array instead of a static NodeList

On Aug 30, 2011, at 10:33 AM, Jonas Sicking wrote:
> My point was that it was a mistake for querySelectorAll to return a
> NodeList. It should have returned an Array. Sounds like people agree
> with that then?

I think itís better to return an immutable object (mutable objects are source of programming errors). But this immutable object should have traversing method (forEach, map, filter, etc.).


Received on Tuesday, 30 August 2011 09:32:40 UTC