I can't understand the meaning of these lines of code, can someone help me? #4394
Unanswered
zackzergzeng
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/jaegertracing/jaeger-ui/blob/edc6780fdaf8869eec7abebe6a013403a06670e0/packages/jaeger-ui/src/components/TracePage/TraceStatistics/tableValues.tsx#L191
This line of code is in the form
if(!a<=b)
I've investigated that in javascript the "!" operator takes precedence over the "<=" operator
So the point of this line of code is to determine the non-value of a first, and then do a size judgment with b
So all cases are true except a=0 b<1 and a!=0 b<0, which are false.
Does this make sense, or what is the original meaning of this paragraph?
Beta Was this translation helpful? Give feedback.
All reactions