Type checking and assertion functions for all types but NaN.
npm install id-typeType checking and assertion functions for all types but NaN.
```
var type = require('id-type');
Returns a String with the type of a variable.
Returns a String with the type of a variable.
Returns true if the type of a is t, otherwise returns false.
Returns true if the type of a is Array, otherwise returns false.
Returns true if the type of a is Boolean, otherwise returns false.
Returns true if the type of a is Function, otherwise returns false.
Returns true if the type of a is Null, otherwise returns false.
Returns true if the type of a is Number, otherwise returns false.
Returns true if the type of a is Object, otherwise returns false.
Returns true if the type of a is String, otherwise returns false.
Returns true if the type of a is Undefined, otherwise returns false.
Throws an AssertionError if the type of a is not t, otherwise returns undefined.
Throws an AssertionError if the type of a is not Array, otherwise returns undefined.
Throws an AssertionError if the type of a is not Boolean, otherwise returns undefined.
Throws an AssertionError if the type of a is not Function, otherwise returns undefined.
Throws an AssertionError if the type of a is not Null, otherwise returns undefined.
Throws an AssertionError if the type of a is not Number, otherwise returns undefined.
Throws an AssertionError if the type of a is not Object, otherwise returns undefined.
Throws an AssertionError if the type of a is not String, otherwise returns undefined.
Throws an AssertionError if the type of a is not Undefined, otherwise returns undefined`.