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
Post a Comment