JSPM

fn-typeof

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q36088F
  • License MIT

Get the type of something. Seriously.

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

Last version Build Status Dependency status Dev Dependencies Status NPM Status Gittip

Get the type of something. Seriously.

Install

npm install fn-typeof --save

If you want to use in the browser (powered by Browserify):

bower install fn-typeof --save

and 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