Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Porting Promise.all functionality from AngularJs to VueJs

Promise.all(Objects.values(items).map(({ promise }) => promise))
.then(() => {}) // if it's necessary to resolve with undefined
.catch(() => {}) // if it's necessary to not reject
 
PREVIOUS NEXT
Tagged: #Porting #functionality #AngularJs #VueJs
ADD COMMENT
Topic
Name
6+6 =