JavaScript
JavaScript value is not iterable
JavaScript expected an iterable for spread syntax, for...of, destructuring, or APIs like Promise.all, but received a non-iterable value.
JavaScript
JavaScript expected an iterable for spread syntax, for...of, destructuring, or APIs like Promise.all, but received a non-iterable value.
Observed message
TypeError: x is not iterable
Why it happens
How to fix it
Official reference
MDN: TypeError: x is not iterableRelated errors
Explore more