variable-type-check
v1.0.1
Published
check type of variable
Downloads
1
Readme
About
Check the variable type, it's return boolean value (true/false)
Installation
Use the package variable-type-check
npm install variable-type-check
Usage
const typecheck = require('variable-type-check');
/* Pass inside the two params 1st your value and in second it's real type,
it will return a boolean value.
*/
typecheck("x", 'String'); // true
typecheck(10, 'String'); // false
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.