# lutils-typeof

> Reliable type checks for javascript primitives

Latest version **0.2.5** (published 2017-01-10) · 0 weekly downloads

## Install

```sh
npm install lutils-typeof
pnpm add lutils-typeof
yarn add lutils-typeof
bun add lutils-typeof
```

## 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.2.5 |
| Published | 2017-01-10 |
| First published | 2016-02-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | nfour |
| Maintainers | nfour |
| Keywords | type, typeof |

## Links

- npm: https://www.npmjs.com/package/lutils-typeof
- Repository: https://github.com/nfour/lutils-typeof
- Homepage: https://github.com/nfour/lutils-typeof#readme
- Issues: https://github.com/nfour/lutils-typeof/issues
- npm.io page: https://npm.io/package/lutils-typeof

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.2.5 (latest) — 2017-01-10
- 0.2.4 — 2017-01-10
- 0.2.3 — 2016-08-07
- 0.2.2 — 2016-07-01
- 0.2.1 — 2016-07-01
- 0.2.0 — 2016-07-01
- 0.1.2 — 2016-04-23
- 0.1.1 — 2016-02-21
- 0.1.0 — 2016-02-21

## README

# typeOf `lutils-typeof`
Reliable type checks for javascript primitives

`npm install lutils-typeof`


```js
import typeOf from "lutils-typeof"

// Returns a string
typeOf({}) // "object"
typeOf(5000) // "number"
typeOf(NaN) // "nan"

// Returns a boolean
typeOf.Object({}) // true
typeOf.Object(null) // false
typeOf.Boolean(false) // true
typeOf.String("string") // true
typeOf.Function(typeOf) // true
typeOf.Array([]) // true
typeOf.Number(600) // true
typeOf.Number(Infinity) // true
typeOf.Date(new Date()) // true
typeOf.RegExp(/test/i) // true
typeOf.NaN(NaN) // true

typeOf.null(null) // true
typeOf.Null(null) // true
typeOf.undefined(undefined) // true
typeOf.Undefined(undefined) // true
```

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