`&&` actually does a boolean operation on the truthiness of a value or object and then returns the last object evaluated.  So this counts on the fact that if the first operand evaluates to something falsy, it will exit early return that falsy result.  If not, it will evaluate the second and return that result.