I\'m learning ES6 fat arrow functions. What is the correct way to change this code, so as to be able to put another line, even const a = 100; in the place indic
const a = 100;
If you want to convert the following method into having more lines:
{ filter: appointment => true }
You have to add curly braces and a return statement:
return
{ filter: appointment => { // ... add your other lines here return true; } }