JavaScript, Node.js: is Array.forEach asynchronous?
No, it is blocking. Have a look at the specification of the algorithm. However a maybe easier to understand implementation is given on MDN: if (!Array.prototype.forEach) { Array.prototype.forEach = function(fun /*, thisp */) { “use strict”; if (this === void 0 || this === null) throw new TypeError(); var t = Object(this); var len = … Read more