Edit in JSFiddle

function CatMaker(name) {
    return {
        speak: function () {
            console.log("Miaow my name is " + name);
        }
    };
}

var catNames = ['Charlie', 'Fluffy', 'Mouse'];
var cats = _.map(catNames, function (name) {
    return CatMaker(name);
});

_.each(cats, function (cat) {
    cat.speak();
});

              
            
          
            
              
                

              
            
          
            
              

External resources loaded into this fiddle: