javascript - Bluebird Map on HashMap/Obj -


i'm using bluebird library asynchronous calls in javascript. noticed there's map function can apply asynchronous function each element in array. however, want use method on object has keys. there way this?

there many way convert object array :

object.keys(yourobject).map(function(key){ return yourobject[key] }) 

you can use promise.map too


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -