mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* Compress output for optional chain with multiple `?.` * Shorter output for optional delete * Use a single temp variable per optional chain
12 lines
1.1 KiB
JavaScript
12 lines
1.1 KiB
JavaScript
var _foo, _a, _a$b, _a$b$c, _orders, _orders2, _client, _orders$client$key, _a2, _c, _a3;
|
|
(_foo = foo) === null || _foo === void 0 ? void 0 : _foo.bar;
|
|
(_a = a) === null || _a === void 0 || (_a = _a.b.c) === null || _a === void 0 ? void 0 : _a.d.e;
|
|
(_a$b = a.b) === null || _a$b === void 0 || (_a$b = _a$b.c.d) === null || _a$b === void 0 ? void 0 : _a$b.e;
|
|
(_a$b$c = a.b.c) === null || _a$b$c === void 0 || (_a$b$c = _a$b$c.d) === null || _a$b$c === void 0 ? void 0 : _a$b$c.e;
|
|
(_orders = orders) === null || _orders === void 0 ? void 0 : _orders[0].price;
|
|
(_orders2 = orders) === null || _orders2 === void 0 || (_orders2 = _orders2[0]) === null || _orders2 === void 0 ? void 0 : _orders2.price;
|
|
orders[(_client = client) === null || _client === void 0 ? void 0 : _client.key].price;
|
|
(_orders$client$key = orders[client.key]) === null || _orders$client$key === void 0 ? void 0 : _orders$client$key.price;
|
|
(0, (_a2 = a) === null || _a2 === void 0 ? void 0 : _a2.b).c;
|
|
(0, (_c = (0, (_a3 = a) === null || _a3 === void 0 ? void 0 : _a3.b).c) === null || _c === void 0 ? void 0 : _c.d).e;
|