Justin Ridgewell 2a496890ff Use a better nested syntax
This way, it quickly returns from the conditions. The first nil will
now exit, instead of checking every nil.

This also allows conditionalChaining inside a container to still
operate the container.
2017-06-07 03:22:51 -04:00

9 lines
300 B
JavaScript

var _user$address, _user$address2, _a, _a2;
var street = (_user$address = user.address) == null ? void 0 : _user$address.street;
(_user$address2 = user.address) == null ? void 0 : street = _user$address2.street;
test((_a = a) == null ? void 0 : _a.b, 1);
1, (_a2 = a) == null ? void 0 : _a2.b, 2;