1.0.1 • Published 8 years ago

what-type v1.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

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