Can I count on nodeIDs mapping is completed every time doSomething() is called?
nodeIDs = $.map(nodeIDs, function(n){
return n.match(/d+$/);
});
doSomething(nodeIDs);
I thought all callbacks in node.js are asynchronous? I did read an article on general programming that callback could be synchronous but I am not sure about node.js?