From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#Returning_object_literals
Returning object literals
Keep in mind that returning object literals using the concise syntax
params => {object:literal} will not work as expected:
var func = () => { foo: 1 }; // Calling func() returns
undefined! var func = () => { foo: function() {} }; //
SyntaxError: function statement requires a name
This is because the code inside braces ({}) is parsed as a sequence of
statements (i.e. foo is treated like a label, not a key in an object
literal).
Remember to wrap the object literal in parentheses:
var func = () => ({ foo: 1 });
so .. if you want to return an object literal, wrap it in ()