In New York City, it is illegal for restaurants and food stores to throw away perfectly edible food. They are required to donate it, and the city even comes and picks it up.
Composting is also strongly urged. They have special composting bins that are collected once a week placed around neighborhoods. I believe they also have composting pick up at apartment buildings, too. Like trash and recycling.