I'm wondering why arry.find() is working if I write it like this:
const tour = tours.find(el => el.id === id);
But not if I write the arrow function like that:
const tour = tours.find((el) => {el.id === id});
Can someone explain this? In both cases I give a function as parameter.