I am using GWT and the translated javascript has this functionality in several places
valuesLength = (values.length , undefined);
I assumed that it was a set to undefined if object does exist but when debugging in the browser although values object exist and length has a value valuesLength always equals undefined.
Its because the comma operator evaluates its operands left to right and returns the value of rightmost operand.
MDN reference (not working right now)
If the objective is to have check for object’s existence, the right way to do that is