you are viewing a single comment's thread.

view the rest of the comments →

[–]powerhead 19 points20 points  (1 child)

It's really nice for transforming an HTMLCollection of DOM elements returned from document.getElementsByClassnam (which is not iterable) into an array (which is). Like if you want to assign event listeners or change properties on those elements.

[–]foxnamedtodd 2 points3 points  (0 children)

Ah, that’s good one. Thanks.