mesqueeb / is-what

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.
https://mesqueeb.github.io/is-what/
MIT License
179 stars 19 forks source link

Add `isInstanceOf(value, classNameOrClass)` #38

Closed jcbhmr closed 1 year ago

jcbhmr commented 1 year ago

fixes #36 This PR would...

jcbhmr commented 1 year ago

for the JSDocs on the overloads I meant this:

Ahh! I see what you mean now! 👍

For reference, the official TypeScript way of doing it is: https://github.com/microsoft/TypeScript/blob/main/src/lib/es2023.array.d.ts#L2-L12 image

so I don't think it's that big of a deal when the official TS lib.d.ts files are just a single JSDoc comment 🤷‍♀️