estype
EcmaScript Type Checker.
Installation
Installing with npm:
$ npm install estype --save
This module does not have dependencies.
Usage
In a browser:
In Node.js:
var type = ;
Usage example:
var type = ; var today = ;if === 'Date' console; var obj = {};if === 'Object' console; var myObj = ;if === 'MyClass' console; var result = Math;if === 'NaN' console;
Testing and complete reference of results
For testing and as a complete reference of available results, you can see https://github.com/todojs/estype/blob/master/test.js
Contributor
- Pablo Almunia (github:pabloalmunia or @pabloalmunia)