# judge-data-type

> A module for judging-data-type

Latest version **1.2.4** (published 2020-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install judge-data-type
pnpm add judge-data-type
yarn add judge-data-type
bun add judge-data-type
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2020-03-07 |
| First published | 2020-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | JerryYu |
| Maintainers | jerryyu |

## Links

- npm: https://www.npmjs.com/package/judge-data-type
- Repository: https://github.com/NvanYu/judge-data-type
- Homepage: https://github.com/NvanYu/judge-data-type#readme
- Issues: https://github.com/NvanYu/judge-data-type/issues
- npm.io page: https://npm.io/package/judge-data-type

## Recent versions

- 1.2.4 (latest) — 2020-03-07
- 1.1.4 — 2020-03-06
- 1.1.3 — 2020-03-06
- 1.1.2 — 2020-03-06
- 1.1.1 — 2020-03-06
- 1.0.1 — 2020-03-06

## README

## judge-data-type

a module for judge data type

## Installation

```bash
$ npm install judge-data-type
```

## Usage

```js
let type = require("judge-data-type");
type.isNumber(1); // true
type.isBoolean(true); // true
type.isPlainObject(new Date()); // false
type.isSet(new Set()); // true
type.isSymbol(Symbol("123")); // true
```

## API

The following are all api of this library:

| API              |                 Description                 |
| ---------------- | :-----------------------------------------: |
| isString(v)      |   Determines whether a value is a string    |
| isNumber(v)      |   Determines whether a value is a number    |
| isBoolean(v)     |   Determines whether a value is a boolean   |
| isTrue(v)        |     Determines whether a value is true      |
| isFalse(v)       |     Determines whether a value is false     |
| isUndefined(v)   |   Determines whether a value is undefined   |
| isNull(v)        |     Determines whether a value is null      |
| isPromise(v)     |   Determines whether a value is a promise   |
| isObject(v)      |   Determines whether a value is a object    |
| isPlainObject(v) | Determines whether a value is a plainObject |
| isFunction(v)    |  Determines whether a value is a function   |
| isDate(v)        |    Determines whether a value is a date     |
| isRegExp(v)      |   Determines whether a value is a regexp    |
| isLikeArray(v)   |  Determines whether a value is a likeArray  |
| isMap(v)         |     Determines whether a value is a map     |
| isWeakMap(v)     |   Determines whether a value is a weakMap   |
| isSet(v)         |     Determines whether a value is a set     |
| isWeakSet(v)     |   Determines whether a value is a weakSet   |
| isSymbol(v)      |   Determines whether a value is a symbol    |
| isBigInt(v)      |   Determines whether a value is a bigInt    |
| isElement(v)     | Determines whether a value is a dom element |

## License

MIT

---
_Source: https://npm.io/package/judge-data-type · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
