I have a function that returns promiseA, it takes param1 and param2. If 
param2 is a number I need to return the promise. It is  noop.

I have a function that returns promiseB, it takes param1 and does what it 
does.

I have a composite function finalPromise that returns 
promiseA.then().promiseB.

What does the code for finalPromise look like?

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/2bb22086-fcd0-42b6-9ffe-d04a6246795a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to