Oops, forgot to register extension
This commit is contained in:
parent
364a98f71a
commit
9458987988
@ -61,3 +61,7 @@ if (!Array.prototype.single)
|
||||
Array.prototype.single = function <T>(this: T[], filter: (elem: T) => boolean) {
|
||||
return single(this, filter);
|
||||
};
|
||||
if (!Array.prototype.forEachAsync)
|
||||
Array.prototype.forEachAsync = function <T>(this: T[], callback: (elem: T, index: number, array: T[]) => Promise<void>) {
|
||||
return forEachAsync(this, callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user