Joined January 2012
·
Posted to
Neat way to loop through an array in JS
over 1 year
ago
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
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Honey Badger
Have at least one original Node.js-specific repo
Forked
Have a project valued enough to be forked by someone else
Raven
Have at least one original repo where some form of shell script is the dominant language
Nephila Komaci 3
Have at least three original repos where PHP is the dominant language
Charity
Fork and commit to someone's open source project in need
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Why would you even do that?