Just Eat Takeaway.com has finalized the sale of Grubhub to startup Wonder for $650 million after a two-year search for a buyer. The deal reflects a significant loss as Grubhub carries $500 million in debt, leaving Just Eat Takeaway with just $50 million. The sale emphasizes a shift in the food delivery industry towards profitability following years of overinvestment. Wonder, led by e-commerce veteran Marc Lore, aims for a $40 billion valuation and plans to leverage Grubhub's national presence. However, turning around Grubhub's debt-laden operations poses a major challenge.