function selectRandomMeals(arr, days, makeMenu) {
		const randomlyOrderedArray = arr.sort(() => { return .5 - Math.random(); });
		const newArray = randomlyOrderedArray.slice(0, days);

		makeMenu(newArray);
	}
// Create a randomly generated array from fetch() response
Create a randomly generated array from fetch() response
Create a randomly generated array from fetch () response
function selectRandomMeals(arr, days, makeMenu) {
		const randomlyOrderedArray = arr.sort(() => { return .5 - Math.random(); });
		const newArray = randomlyOrderedArray.slice(0, days);
		makeMenu(newArray);
	}
function selectRandomMeals ( arr , days , makeMenu ) { const randomlyOrderedArray = arr . sort ( ( ) => { return .5 - Math . random ( ) ; } ) ; const newArray = randomlyOrderedArray . slice ( 0 , days ) ; makeMenu ( newArray ) ; }
Create a randomly generated array from fetch() response
Create a randomly generated array from fetch () response