Let\'s imagine we should get some data...
var data = []; //some code omitted that might fill in the data (though might not)
Then we need t
What is the need to check data.length and iterate it?
Simply using for loop would do.