refactor: improved transformation logic

This commit is contained in:
Sven SAULEAU
2017-04-29 18:35:15 +02:00
committed by Justin Ridgewell
parent 72259ca5d3
commit 64ff5a080d
4 changed files with 43 additions and 56 deletions

View File

@@ -1 +1,3 @@
typeof foo !== "undefined" && foo !== null ? foo.bar : null;
var _temp;
(_temp = foo) != null ? _temp.bar : null;

View File

@@ -1 +1,3 @@
typeof (typeof foo !== "undefined" && foo !== null ? foo.bar : null) !== "undefined" && (typeof foo !== "undefined" && foo !== null ? foo.bar : null) !== null ? foo.bar.vroum : null;
var _temp;
((_temp = ((_temp = a) != null ? _temp.b : null).c) != null ? _temp.d : null).e;