I came across this in code generated by Babel from this source. It would appear to be guarding a required function, somehow.
(0, _utilities.validateNextState)(nextDomainState, reducerName, action);
I understand how the comma statement in the parenthesis discards the 0
and returns the validateNextState
function, but why not just do:
_utilities.validateNextState(nextDomainState, reducerName, action);
My guess is a type of guard (like closures guard scope, or setTimeout makes a function call asynchronous), but can't figure out what it's purpose is.