We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/** * @argument Array items * @argument Async Function asyncFunction * @return [Promise] */ function getInSequence(items, asyncFunction) { return items.reduce((previous, item) => ( previous.then(accumulator => ( asyncFunction(item).then(result => accumulator.concat(result)) )) ), Promise.resolve([])); }
Source
There was an error while loading. Please reload this page.