I think the answer to this question is that in the first expression (0,_utils.getDefaultFormState) comma , operator evaluates the last argument and returns it.
Thus, the comma operator controls this operand from left to right and returns the most processed operand last right in the expression.
But this is different in terms of using functions and return values.
// sample from MDN. function myFunc() { var x = 0; return (x += 1, x); // the same as return ++x; }
As I mentioned in the comment:
The first parentheses are a self- _utils function, and it returns this value as a function of the _utils object, which takes 3 or more arguments.
source share