The JavaScript exception "is not iterable" occurs when the value which is spread into an array or function call, given as the
right-hand side of for...of,
as argument of a function such as Promise.all or Set(),
or as the right-hand side of an array destructuring assignment,
is not an iterable object. This error is also encountered when Array.fromAsync() or for await...of is used with a non-async iterable....Array , String or Map , a generator result, or an object implementing...capital); } Iterating over a generator Generator functions are functions...