“Continue” in Lodash forEach
I was looking over the differences between the Underscore and Lodash libraries and I came upon one issue regarding _.each / _.forEach.
In Underscore, the _.each function cannot break out of the looping. When using return false, it only worked as a “continue” statement. (which was the intended functionality in my case) = It forces the next iteration of the loop to take place, skipping any code in between.
In Lodash, on the other hand, returning false tells _.forEach() that this iteration will be the last. Is there a way to make the “continue” behavior also functional in Lodash?