You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
The error in the code above is comparing obj1.foo === obj1.foo. In very few cases is an obviously true condition like this actually what the developer intended. While tslint probably doesn't want to be attempting to evaluate expressions on each side of a condition, it could do a simple textual comparison to catch mistakes like this.
The text was updated successfully, but these errors were encountered:
I was writing code to check if two objects were equivalent and wrote code like this:
The error in the code above is comparing
obj1.foo === obj1.foo
. In very few cases is an obviously true condition like this actually what the developer intended. While tslint probably doesn't want to be attempting to evaluate expressions on each side of a condition, it could do a simple textual comparison to catch mistakes like this.The text was updated successfully, but these errors were encountered: