Joined January 2012
·

Jon Bevan

England
·
·
·

Why would you even do that?

You can also do this to iterate over "falsey" values: while ((i = a.shift()) !== undefined)

or:
while (a.length > 0) {
console.log(a.shift());
}

Achievements
70 Karma
0 Total ProTip Views