Support for `x instanceof Object`
Open
bug
Typing: refinements
- Dominant language
- Rust
- Stars
- 22.3k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
(This is probably related to #1690)
To check whether a certain value `x` is an object, I would like to use `x instanceof Object` because `typeof x === 'object'` ...
1. does not cover the case where x is `null`
2. does not cover functions being objects
Contributor guide
Assessment
This issue has not been assessed yet.