Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 14
    Added note on instanceof even though that wasn't the asked question. Commented Sep 5, 2018 at 20:03
  • 4
    Doesn't answer the question. This doesn't get the type it confirms that it is or is not a type that you provide. Commented Jan 8, 2023 at 2:30
  • It answers the question if you look at the given context/intent of the person asking the question... Commented Mar 24, 2023 at 11:25
  • What if the type is a function. ? Commented Jul 20, 2023 at 6:45