npm install type.isDetect the type of a variable.
```
npm install type.is --save
`
var type = require('type.is')
var fn = function() {};
if (type(fn).is.func) {
fn.call(this);
}
`
|Type | Detector |
|:-----------|:---------------------|
|Number | type(v).is.number |type(v).is.string
|String | |type(v).is.bool
|Boolean | |type(v).is.func
|Function | |type(v).is.array
|Array | |type(v).is.date
|Date | |type(v).is.re
|RegExp | |type(v).is.object` |
|Object |