I asked whats the equivalent of jquery when in angular and now I want to do similar thing in node. I need to something like this:
when(fs.readFile('file1'), fs.readFile('file2'))
    .done(function( a1, a2 ) {
       ... // do stuff
    });
How can I achieve this? Thanks.
 
     
    