mapping over a list of promises in javaascript

61

mapping over a list of promises in javaascript -

const mappedArray = await Promise.all(
  array.map(p => {
    return getPromise(p).then(i => i.Item);
  })
);

Comments

Submit
0 Comments