Skip to content

Instantly share code, notes, and snippets.

@holmesal
Last active August 29, 2015 14:21
Show Gist options
  • Save holmesal/32c9b60fec4c3d4d8885 to your computer and use it in GitHub Desktop.
Save holmesal/32c9b60fec4c3d4d8885 to your computer and use it in GitHub Desktop.
var foods = ['falafel', 'popcorn', 'smoothie'];
/** @type {Array.<string>} */
// Is there any way to document the food parameter for the callback function below, without making a separate "parseFood" function?
var betterFoods = _.map(foods, function(food) {
return food + ' with rice'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment