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?