Call a function in JS when a loop is done?
<p>Is there a standard way of calling a function after many async work is done? I am looping through N files and i call a async function. After the loop i called done() which caused a bug until i realize its because work is still being done by the time the loop is over due to async calls.</p>

<p>Anyways instead of writing my own countdown code is there a standard way to say after all of these functions/async calls are finish call this code?</p>
