var lastnamebody=[];
var final =_.filter(data.comments,function(n){var lastnamebody=n.body.split('\r')[0].split(' ')[2];
if(lastnamebody!=undefined)
lastnamebody=lastnamebody.toLowerCase();
//console.log(lastnamebody)
var login=n.user.login.toLowerCase();
//console.log(login)
if(login.indexOf(lastnamebody)>-1)return true;
else
return false;})
return _.size(final)
the number of people ,who have used their last name in their id are 12
var idname =_.filter(data.comments,function(n){
return n.user.id==13950166
})
var body=_.first(idname[0].body.split('\n'));
return body
Name: TJ Romanowski has the id 13950166
var body = _.pluck(data.comments,"body")
var food =_.size(_.filter(body,function(n){return _.contains(n,"Computer")||_.contains(n,"CS")||_.contains(n,"cs\r")}))
return food
Number of people from the computer science are 22
return _.size(_.pluck(_.filter(data.comments,function(chr){
return chr.created_at.split('T')[0].split('-')[2] <=24;}),"body"))< code="">=24;}),"body"))<>
the number of people who submitted before the deadline are 21