diff --git a/src/util/util/extensions/Array.ts b/src/util/util/extensions/Array.ts index f2a69840..32845b0c 100644 --- a/src/util/util/extensions/Array.ts +++ b/src/util/util/extensions/Array.ts @@ -61,3 +61,7 @@ if (!Array.prototype.single) Array.prototype.single = function (this: T[], filter: (elem: T) => boolean) { return single(this, filter); }; +if (!Array.prototype.forEachAsync) + Array.prototype.forEachAsync = function (this: T[], callback: (elem: T, index: number, array: T[]) => Promise) { + return forEachAsync(this, callback); + };