I\'ve created a library with has the following extension method:
type PromiseFunc = (item: any) => Promise; interface Array { mapPar