const timezone = {'a' : 1};
const options = map(timezone, (val, key) => {
<option key={val} value={val}>{key}</option>
});
console.log(options); // [undefined]
With curve brackets in the arrow function, it outputs [undefined]
const timezone = {'a' : 1};
const options = map(timezone, (val, key) =>
<option key={val} value={val}>{key}</option>
);
console.log(options); // Array[1]
Without curve brackets in the arrow function, it outputs Array[1].
What happened between the two block of codes?