3 ms·
Same with many node apps. Every other statement is: if (err !== null) { return callback(err); }
by s_kilk 10y ago
Same with many node apps. Every other statement is:
if (err !== null) {
return callback(err);
}
- Klathmon 10y agoWith es2015+ this is no longer the case, it's back to good old try/catch statements if using async/await, and .catch(...) if using promises.