Let's say I pass different data to a function in different places to get around some legacy solutions / code.
var partialFunction;
if(thisSituationIsCrazy(data, value)) {
partialFunction = _.partial(originalFunciton, data)
} else {
partialFunction = _.partialRight(originalFunction, value)
}
Is there a way to determine which values were actually passed and in which place in the function? This is for debugging purposes only.
I hope for something like partialFunction.argumentsor some that will shed some light on where he got to, because the real situation is more complicated than my example.
I have not seen a way to do this based on lodash docs , as well as the source code . I also have not seen this on any blogs on this subject.
source
share