Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hypersoftllc/qc-type_of

Yet another NPM package to improve upon JavaScript's typeof operator.
https://github.com/hypersoftllc/qc-type_of

javascript-utility

Last synced: 28 days ago
JSON representation

Yet another NPM package to improve upon JavaScript's typeof operator.

Awesome Lists containing this project

README

        

# qc-type_of

[![Build Status][travis-svg]][travis-url]
[![Coverage Status][coverage-image]][coverage-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

Yet another NPM package to improve upon JavaScript's `typeof` operator.

## Installation

```sh
npm install --save qc-type_of
```

## Comparison with JavaScript's `typeof` Operator

**Differences**

| Value | typeof | typeOf |
| ---------- | ----------- | ----------- |
| arguments | 'object' | 'arguments' |
| new Boolean(...) | 'object' | 'boolean' |
| Infinity | 'number' | 'infinity' |
| NaN | 'number' | 'nan' |
| null | 'object' | 'null' |
| new Number(...) | 'object' | 'number' |
| new String(...) | 'object' | 'string' |

[coverage-image]: https://coveralls.io/repos/github/hypersoftllc/qc-type_of/badge.svg?branch=master
[coverage-url]: https://coveralls.io/github/hypersoftllc/qc-type_of?branch=master
[downloads-image]: http://img.shields.io/npm/dm/qc-type_of.svg
[downloads-url]: http://npm-stat.com/charts.html?package=qc-type_of
[license-image]: http://img.shields.io/npm/l/qc-type_of.svg
[license-url]: LICENSE
[npm-badge-png]: https://nodei.co/npm/qc-type_of.png?downloads=true&stars=true
[package-url]: https://npmjs.org/package/qc-type_of
[travis-svg]: https://travis-ci.org/hypersoftllc/qc-type_of.svg?branch=master
[travis-url]: https://travis-ci.org/hypersoftllc/qc-type_of