Answers for "no-await-in-loop lint error fix"

0

no-await-in-loop lint error fix

/* eslint-disable no-await-in-loop */
for (let i = 0; i <= 10; i += 1) {
  const res = await DoSomething();
}
/* eslint-enable no-await-in-loop */
Posted by: Guest on July-23-2021

Browse Popular Code Answers by Language