node.js - running function when underscore each ends -


I am using _ each underscore lib, and I wonder if there is an option Is it possible to know if Loop ended his work?

If your loop runs asynchronous code, which probably does this because you are asking this question, you can save your time for a while like a control flow In search of the library it has been packed with work to handle such situations. You should look for your current problem or

I would advise you to look at the source codes of the ASCNC you are using ... they are not complicated and it is good to understand how they work.

If your loop does not run asynchronous code, then after the loop ends, whatever you will keep after loop ... = P


Comments