Created
April 23, 2019 16:33
-
-
Save lcomino/dab767d8a2b85f00458533b95386266e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.prototype.asyncForEach = async function (fn, scope) { | |
for(var i = 0, len = this.length; i < len; ++i) { | |
await fn.call(scope, this[i], i, this) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment