Last active
August 29, 2015 14:21
-
-
Save holmesal/32c9b60fec4c3d4d8885 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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