Package Exports
- fn-typeof
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 (fn-typeof) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fn-typeof
Get the type of something. Seriously.
Install
npm install fn-typeof --saveIf you want to use in the browser (powered by Browserify):
bower install fn-typeof --saveand later link in your HTML:
<script src="bower_components/fn-typeof/dist/fn-typeof.js"></script>Usage
var typeOf = require('fn-typeof');
console.log(typeOf({})) // => 'object'
console.log(typeOf([])) // => 'array'
console.log(typeOf.types)
// => [
// 'array',
// 'boolean',
// 'date',
// 'function',
// 'number',
// 'object',
// 'regexp',
// 'string'
// ];
License
MIT © Kiko Beats