JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 181181
  • Score
    100M100P100Q162233F
  • License KINDLY

A better typeof for JavaScript.

Package Exports

  • typpy

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

Readme

typpy

typpy Donate now

A better typeof for JavaScript.

Installation

$ npm i typpy

Example

// Dependencies
var Typpy = require("typpy");

console.log(Typpy(0));
// => "number"

console.log(Typpy(""));
// => "string"

console.log(Typpy(null));
// => "null"

console.log(Typpy([]));
// => "array"

Documentation

Typpy(input)

Gets the type of the input value.

Params

  • Anything input: The input value.

Return

  • String The input value type (always lowercase).

How to contribute

Have an idea? Found a bug? See how to contribute.

License

KINDLY © Ionică Bizău–The LICENSE file contains a copy of the license.