3 ms·
I don't think you can use splats with a NodeList. At least, the TypeScript compiler complains about it.
by moron4hire 5y ago
I don't think you can use splats with a NodeList. At least, the TypeScript compiler complains about it.
- edflsafoiewq 5y agoWorks for me. Splats work for any iterable.
- webstrand 5y ago`[ ...document.body.childNodes ]` is legal. You need to have the `DOM.Iterable` enabled in your compilerOptions.libs` for TypeScript to permit it, though.