Most efficient way to convert an HTMLCollection to an Array
will have the same effect using “native” code. Edit Since this gets a lot of views, note (per @oriol’s comment) that the following more concise expression is effectively equivalent: But note per @JussiR’s comment, that unlike the “verbose” form, it does create an empty, unused, and indeed unusable array instance in the process. What compilers do about … Read more