what-type

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i what-type

Weekly Downloads

9

Version

1.0.1

License

ISC

Last publish

Collaborators

  • vikramcse