Here’s a situation I need to filter some restaurants by location, then when I get the results I need to filter those restaurant’s items by price, then when the price filter is done I need to filter those items by tag names.
you frequently end up with a bunch of nested async calls:
restsAtLoc(loc, function(rests){
filterItemsByPrice(items, function(filtered){
filterItemsByTagNames(items, tags, function(filtered){