So, after loading the npm module and passing the passed code, I found the line:
return dispatch(isThunk(rejected) ? rejected.bind(null, resolveAction) : _extends({}, resolveAction, isAction(rejected) ? rejected : _extends({}, !!rejected && { payload: rejected })));
Of which the relevant part is here:
_extends({}, !!rejected && { payload: rejected })
Basically, if !!rejected true, then it will propagate the payload to the object. If it is not _extends({}, false) just returns {} .
The key to this work is that ... has lower priority than any other statement in the entire line. With this in mind, you can begin to understand this.
source share