Comment on Safe AssignmentparentComments−Wingy1yWith the length of that you might as well do: if (obj) obj.bar = 42
Comments
With the length of that you might as well do: