what-type
v1.0.1
Published
Returns type of given value intellegently
Downloads
11
Readme
what type
Returns type of given variable/object intellegently
Install
$ npm install --save what-type
Run
var what = require('what-type');
console.log(what([]));
// -> 'array'
Examples
var what = require('what-type');
console.log(what([]));
// -> 'array'
console.log(what('github'));
// -> 'string'
Usage
require('what-type')(variable|object)
Returns type of given variable/object
Arguments:
variable/object
: A variable or Object.
Returns: Returns the type of given variable or object
License
© 2016 vikram. MIT License