Edit in JSFiddle

var collection = [1, 2, 3, 4];

var sumOfEvenSquares = _(collection).chain()
    .map(function (val) { return val * val; })
    .select(function (val) { return val % 2 === 0; })
    .reduce(function (sum, val) { return sum + val }, 0)
    .value();

console.log(sumOfEvenSquares);

              
            
          
            
              
                

              
            
          
            
              

External resources loaded into this fiddle: