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
However, because Buble uses array.concat for spread, it will fail on array-like objects because concat will only "spread" arrays. Anything else, it just appends to the target array as is.
adrianheine
changed the title
Buble's spread will not work on array-like objects
Buble's spread will not work on array-like (i. e. iterable) objects
Mar 2, 2019
Spreading a NodeList into an array works in vanilla JS. The following example will log an array containing text, p, text, p, text.
However, because Buble uses
array.concat
for spread, it will fail on array-like objects because concat will only "spread" arrays. Anything else, it just appends to the target array as is.Input:
Output:
The text was updated successfully, but these errors were encountered: