I have some limited experience with coding in Javascript, but I can figure out most functionality using common programming logic.
I'm part of a group for a software engineering class, and our group is tasked to develop a feature for an existing piece of software. We have some input from the actual developer about where to start, but I'm getting tripped up over a few parts in the code.
A few snippets:
json.multiWordTexts = _.pickBy(json.multiWordTexts,isUsable);
and
$.each(boardContent.inks,function(i,ink){
prerenderInk(ink,true);
});
and
prerenderTextMark = Date.now();
_.each(boardContent.multiWordTexts,function(text){
if(isUsable(text)){
prerenderMultiwordText(text);
}
else{
console.log("Not usable",text);
}
});
What I can't figure out is what the the &.
and _.
actually do. I've searched around everywhere, but I haven't been able to find anything that identifies those things. My first thought was that it was a way to write a foreach statement, but they are used with other things as well.
The code is in a javascript file, so I'm assuming it's javascript. I've never seen it before in other pieces of code, so I have no idea what its functionality is. Can anyone enlighten me?