Package Exports
- what-type
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (what-type) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
what type
Returns type of given variable/object intellegently
Install
$ npm install --save what-typeRun
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