Closed getify closed 5 years ago
var f = x => x > 10 ? x < 100 ? x : x / 2 : x + 1; // ugh
This rule will have a depth level for ternaries... default to 0 meaning "no ternaries allowed", but 1 would mean one level of ternary, 2 would mean two (nested), etc.
0
1
2
This rule will have a depth level for ternaries... default to
0
meaning "no ternaries allowed", but1
would mean one level of ternary,2
would mean two (nested), etc.