I need to skip the functions or aync.series breakthrough, and I was wondering how I should do this. I have an array of elements that I need to iterate over. I put this list in the async.each function. Each element of the array then iterates over the list of functions necessary before moving on in the series (since information from one of them is required in the next). But in some cases, I only need to go through the first function, then if the condition is not met (for example, this is a category that we do not use), and then the callback in the async.each loop for the next element. Here is an example of my code:
exports.process_items = function(req, res, next){ var user = res.locals.user; var system = res.locals.system; var likes = JSON.parse(res.locals.likes); var thecat;
source share