The analyzer has detected a code fragment that may contain a typo. A sequence of three or more similar comparisons linked by the || or && operator contains an expression that breaks the pattern of such comparisons.
The example:
if (a.x === b.x && a.y === b.y && a.z === b.y)
In the example, properties of the a variable are compared with those of the b variable. However, in the a.z == b.y expression, different properties are compared. Most likely, this is a copy-paste error, and the check should compare the same properties.
The fixed example:
if (a.x === b.x && a.y === b.y && a.z === b.z)
This diagnostic is classified as:
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders: