how to sturcture this promise

44 views
Skip to first unread message

Reza Razavipour

unread,
Jun 9, 2014, 5:06:34 PM6/9/14
to nod...@googlegroups.com
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?
Reply all
Reply to author
Forward
0 new messages