0 votes
in JavaScript by
What is the easiest way to ignore promise errors in Javascript?

1 Answer

0 votes
by

The easiest and safest way to ignore promise errors is void that error. This approach is ESLint friendly too.

await promise.catch((e) => void e);
...