demo/app.js
// add tag to all photos in array
add tag to all photos in array
add tag to all photos in array
function annotatePhotos(photos, tag) {
    return _.map(photos, function(photo) {
      return { photo: photo, tag: tag };
    });
  }
function annotatePhotos ( photos , tag ) { return _ . map ( photos , function ( photo ) { return { photo : photo , tag : tag } ; } ) ; }
add tag to all photos in array
add tag to all photos in array