News for hackers. Stuff that matters.
Re:Explicit vs. Clever by thezilch on Tuesday April 02, 2013 @06:57PM (#5482794)
I find it easier -- clearer -- to get rid of the enumerable early.

  var i, order, totals = [];
  for(; order=orders[i]; i++) totals.push(order.total);
Re:Explicit vs. Clever by jwmerrill on Tuesday April 02, 2013 @09:48PM (#5483667)
Incrementing undefined gives NaN. You're going to want to initialize that i to 0.