Skip to content

vikramcse/what-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Returns type of given object intellegently

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published