Simple functionality alternative to check data type references such as typeof and instanceof.
-
Updated
Mar 6, 2023 - TypeScript
Simple functionality alternative to check data type references such as typeof and instanceof.
Check if a value is an `Error` instance.
Create errors that can be both thrown and returned. Make error handling easier for both JavaScript and TypeScript.
Add a description, image, and links to the instanceof topic page so that developers can more easily learn about it.
To associate your repository with the instanceof topic, visit your repo's landing page and select "manage topics."