Having trouble understanding exactly how to use fcall and fapply in this situation:
1 return promiseReturningFunction()
2 .then(anotherPromiseReturningFunction)
3 .then(function() { return promiseReturningFunctionWithArgs(arg1, arg2); })
4 .then(doSomeStuffFunction)
5 .fail(doFailureStuffFunction);
For brevity and clarity, I'd like to transform line 3 into
3 .fcall(promiseReturningFunctionWithArgs, arg1, arg2)
or
3. fapply(promiseReturningFunctionWithArgs, [arg1, arg2])
But changing that line causes TypeError failures. Am I misusing these?