Let's say I have a collection of collections named, collections. Now, let's consider this piece of code.
_.each(collections, function(collection){
_.each(collection, function(item){
console.log(item);
}
});
Several times, it prints undefined values. It seems to print item values before actually setting it from the previous loop. Why is it not retaining the order of execution?
Thanks in advance.