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

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -