You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently NodeList and HTMLCollection do not have [Symbol.isConcatSpreadable]: true, so the array concat adds them as an element instead of adding their elements.
Let
htmlCollection
be anHTMLCollection {}
such that,Object.keys(htmlCollection)
is[‘0’, ‘1’, ‘2’]
Object.values(htmlCollection)
is[ HTMLDivElement {}, HTMLDivElement {}, HTMLDivElement {} ]
Using tslib <= 2.2.0
[ …htmlCollection ]
gives[ HTMLDivElement {}, HTMLDivElement {}, HTMLDivElement {} ]
Using tslib 2.3.0
[ …htmlCollection ]
gives[ HTMLCollection {} ]
, whereHTMLCollection {}
is the same ashtmlCollection
Similar behaviour is observed for
NodeList {}
.The text was updated successfully, but these errors were encountered: