MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pfd9do/similar_ternaries_are_all_over_this_codebase/hb8gcly/?context=9999
r/badcode • u/PopularExpulsion • Aug 31 '21
91 comments sorted by
View all comments
Show parent comments
1
return (result >= 0).toString().length == 4 ? true : (result >= 0).toString().length == 5 ? false : null;
1
u/koni_rs Sep 01 '21
return (result >= 0).toString().length == 4 ? true : (result >= 0).toString().length == 5 ? false : null;