Hey everyone, I have this higher order function in arrow format ```js
const catchErrors = (fn) => (req, res, next) => {
Promise.resolve(fn(req, res, next)).catch(next);
};I'm trying to come up with the equivalent of it using regular function statementsjs
function catchErrors(fn) {
return function inner(req, res, next) {
Promise.resolve(fn(req, res, next).catch(next));
};
}