Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/hypersoftllc/qc-type_of
- Owner: hypersoftllc
- License: isc
- Created: 2017-05-01T19:55:58.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2017-06-02T23:19:32.000Z (over 7 years ago)
- Last Synced: 2024-11-06T02:18:59.987Z (3 months ago)
- Topics: javascript-utility
- Language: TypeScript
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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