# is-primitive-type

> evaluate that datatype is primitive

Latest version **0.0.5** (published 2018-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-primitive-type
pnpm add is-primitive-type
yarn add is-primitive-type
bun add is-primitive-type
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2018-07-27 |
| First published | 2017-07-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Felipe S. Buenano |
| Maintainers | fesebuv |
| Keywords | primitive, datatype |

## Links

- npm: https://www.npmjs.com/package/is-primitive-type
- Repository: https://github.com/fesebuv/is-primitive
- Homepage: https://github.com/fesebuv/is-primitive#readme
- Issues: https://github.com/fesebuv/is-primitive/issues
- npm.io page: https://npm.io/package/is-primitive-type

## Recent versions

- 0.0.5 (latest) — 2018-07-27
- 0.0.4 — 2017-07-13
- 0.0.3 — 2017-07-11
- 0.0.2 — 2017-07-11
- 0.0.1 — 2017-07-11

## README

## is-primitive
A [primitive](https://developer.mozilla.org/en-US/docs/Glossary/Primitive) is data that is not an object and has no methods.  

`is-primitive` is a JavaScript method that allows determine if a datatype is `primitive` or not.

[JavaScript has 6 primitive datatypes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures):
* String
* Number
* Null
* Undefined
* Boolean
* Symbol

More information about [JavaScript Primitive Types](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures)

### How to install
```sh
npm install is-primitive-type
```
### How to test
```sh
npm run test
```
### Usage
```js
var isPrimitive = require('is-primitive-type');

isPrimitive(null);
// returns true

isPrimitive([1, 2, 3]);
// returns false

isPrimitive({ a: 1, b: 2, c: 3 });
// returns false
```

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