fn-type
Get the type of something. Seriously.
Install
npm install fn-type --save
If you want to use in the browser (powered by Browserify):
bower install fn-type --save
and later link in your HTML:
Usage
var typeOf = ; console // => 'object'console // => 'array' console// => [// 'arguments',// 'array',// 'arraybuffer',// 'boolean',// 'date',// 'error',// 'float32array',// 'float64array',// 'function',// 'generatorfunction',// 'int16array',// 'int32array',// 'int8array',// 'map',// 'number',// 'object',// 'regexp',// 'set',// 'string',// 'symbol',// 'uint16array',// 'uint32array',// 'uint8array',// 'uint8clampedarray',// 'weakmap',// 'weakset'// ];
License
MIT © Kiko Beats