JSPM

what-type

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q32625F
  • License ISC

Returns type of given value intellegently

Package Exports

  • what-type

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 (what-type) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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