How to convert concise body arrow function to usual function?

Hi Guys! I can’t figure it out how to convert arrow function () to usual function. The problem is i don’t know what to put in return.

Here is an example of code.

const isTheDinnerVegan = arr => arr.every(food => food.source === ‘plant’);

Source: https://www.codecademy.com/paths/front-end-engineer-career-path/tracks/fecp-javascript-syntax-part-ii/modules/fecp-practice-javascript-syntax-arrays-loops-objects-iterators/lessons/intermediate-javascript-coding-challenge/exercises/is-the-dinner-vegan

I think the MDN docs could help:

Arrow function expressions - JavaScript | MDN

they break all the steps down :slight_smile:

I’ve understood. I need to return arr.every.
So the converted function will be following:

function isTheDinnerVegan(arr) { return arr.every(food => food.source === 'plant'); }