map and each in lodash
by bjelline
HTML
<h1>
hi there
</h1>
<p>
nothing to see in the page, look into the log!
</p>
JavaScript
a = [1,2,3,4,5];
console.dir(a);
_forEach(_.map(a,function(x){
return x * 2;
}), function(x) {
console.log(x + " is not a prime");
});