Given the following code:
var arr = [1,2,3,4,5]; var results: number[] = await arr.map(async (item): Promise => { await callAsynchr
I'd recommend using Promise.all as mentioned above, but if you really feel like avoiding that approach, you can do a for or any other loop:
const arr = [1,2,3,4,5]; let resultingArr = []; for (let i in arr){ await callAsynchronousOperation(i); resultingArr.push(i + 1) }