Returns type of given variable/object intellegently
$ npm install --save what-type
var what = require('what-type');
console.log(what([]));
// -> 'array'
var what = require('what-type');
console.log(what([]));
// -> 'array'
console.log(what('github'));
// -> 'string'
Returns type of given variable/object
Arguments:
variable/object
: A variable or Object.
Returns: Returns the type of given variable or object
© 2016 vikram. MIT License