TLDR: Use for...of
instead of forEach()
in asynchronous code.
For legacy browsers, use for...i
or [].reduce()
To execute the promises in parallel, use Promise.all([].map(...))
// Type declarations for ExtendScript Built-in types | |
// Initial declarations by: Eric Robinson <eric@sonicbloom.io> | |
/** | |
* The base class of all JavaScript objects. | |
*/ | |
interface Object { | |
/** | |
* Points to the constructor function that created this object. | |
* Note that this property is treated as an XML element in the XML class. |