typesafe-is
Typecheck and narrow down the variables/parameters with typeguard
Example
; ; if isStringx else
Installation
This module is distributed via npm which is bundled with node and
should be installed as one of your project's dependencies
:
npm install --save typesafe-is
or
yarn add typesafe-is
API
All functions can be imported with one of the following statements:
; // this works; // this works too
See here for full list of available typechecking functions.