Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

mapping over a list of promises in javaascript

const mappedArray = await Promise.all(
  array.map(p => {
    return getPromise(p).then(i => i.Item);
  })
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mapping #list #promises #javaascript
ADD COMMENT
Topic
Name
7+9 =