by RodericDay · 10y ago · 0 comments
I'm thinking
var output = [];
for (var i=0; i<listOfThings.length; i++) {
var thing = listOfThings[i];
var newThing = applyAction(thing);
output.push(newThing);
}
vs. listOfThings.map(thing => applyAction(thing));
and even that is a little bit iffy.No comments yet.