-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rule proposal: no-instanceof-function
#2157
Comments
another case but to forbid Faillet foo = {}
foo instanceof Object // true
let bar = null
bar instanceof Object // false PassBoolean(foo) && typeof foo === 'object'
Boolean(bar) && typeof bar === 'object' |
Would make it a generic |
👍 |
Accepted. |
@dimaMachina From my point of view, |
|
Thanks! |
This rule can be solved by #2452 |
Description
similar to https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-instanceof-array.md
Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: