Why doesn’t my arrow function return a value?
When you use the function body version of an arrow function (with {}), there is no implied return. You have to specify it. When you use the concise body (no {}), the result of the body expression is implicitly returned by the function. So you would write that either with an explicit return: const f … Read more