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
- [22.6](#coercion--valid-typeof) Only compare returned strings by `typeof` to valid strings: eslint: [`valid-typeof`](https://eslint.org/docs/rules/valid-typeof)
3647
+
3648
+
```javascript
3649
+
3650
+
// bad - will be prevented by linter
3651
+
typeof foo === "strnig";
3652
+
3653
+
// good
3654
+
typeof foo === "string";
3655
+
typeof bar === typeof foo;
3656
+
```
3657
+
3644
3658
**[⬆ back to top](#table-of-contents-bookmark_tabs)**
0 commit comments