```javascript
const recipe = (ingredients) => {
if (ingredients.includes("not edible food")) {
return { non_edible: true };
}
const recipeName = "Fruit Salad";
const ingredientsList = ingredients.join(", ");
const steps = [
"Wash and chop the fruits into bite-sized pieces.",
"In a large bowl, combine all the fruits together.",
"Serve chilled and enjoy!"
];
return {
recipeName,
ingredientsList,
steps
};
};
const ingredients = ["Apple", "Orange", "Banana", "Grapes"];
const result = recipe(ingredients);
console.log(result);
```
This code snippet defines a `recipe` function that takes an array of ingredients as input. If the ingredients contain any "not edible food", it returns an object with `non_edible: true`. Otherwise, it constructs a fruit salad recipe with the provided ingredients and returns an object with the recipe name, ingredients list, and steps to prepare the fruit salad.