function updateFoodsFound(listOfFoundFoodsFromApi) {
  let listOfReformatedFoods = [];

  for (let i = 0; i < listOfFoundFoodsFromApi.length; i++) {
    listOfReformatedFoods.push(reformatFood(listOfFoundFoodsFromApi[i]));
  }

  return listOfReformatedFoods;
}
// Loop through list of found foods and convert each to java object
Loop through list of found foods and convert each to java object
Loop through list of found foods and convert each to java object
function updateFoodsFound(listOfFoundFoodsFromApi) {
  let listOfReformatedFoods = [];
  for (let i = 0; i < listOfFoundFoodsFromApi.length; i++) {
    listOfReformatedFoods.push(reformatFood(listOfFoundFoodsFromApi[i]));
  }
  return listOfReformatedFoods;
}
function updateFoodsFound ( listOfFoundFoodsFromApi ) { let listOfReformatedFoods = [ ] ; for ( let i = 0 ; i < listOfFoundFoodsFromApi . length ; i ++ ) { listOfReformatedFoods . push ( reformatFood ( listOfFoundFoodsFromApi [ i ] ) ) ; } return listOfReformatedFoods ; }
Loop through list of found foods and convert each to java object
Loop through list of found foods and convert each to java object