Date Tags JS

JS: which for

If you want to iterate by array than use

for (var i=0;i<data.length;i++) {
    do_smth_with(data[i])
}

NOT

for (var i in data) {
   do_smth_with(data[i])
}

Use this to iterate by objects only.


Comments

comments powered by Disqus