# type-fc

> 判断JavaScript类型

Latest version **1.0.5** (published 2020-04-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install type-fc
pnpm add type-fc
yarn add type-fc
bun add type-fc
```

## 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.0.5 |
| Published | 2020-04-09 |
| First published | 2020-04-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wenmin |
| Maintainers | wenmin |
| Keywords | 类型判断, 类型, type |

## Links

- npm: https://www.npmjs.com/package/type-fc
- npm.io page: https://npm.io/package/type-fc

## 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

- 1.0.5 (latest) — 2020-04-09
- 1.0.3 — 2020-04-09
- 1.0.0 — 2020-04-09

## README

## 类型判断

- 判断JavaScript的所有类型

```js

        import type from 'type-fc'
        console.log(type(1))  //"number"
        console.log(type('1'))  //"string"
        console.log(type(function(){}))  //"function"
        console.log(type({a:"1"}))  //"object"
        console.log(type(null))  //"null"
        console.log(type(undefined))//"undefined"

```

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