# is-instance

> check if a value is an instance. (typeof object or function)

Latest version **1.0.1** (published 2016-04-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install is-instance
pnpm add is-instance
yarn add is-instance
bun add is-instance
```

## 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.1 |
| Published | 2016-04-12 |
| First published | 2016-03-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | korynunn |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2016-04-12
- 1.0.0 — 2016-03-22

## README

# is-instance

check if a value is an instance. (typeof object or function)

## Usage

```
var isInstance = require('is-instance');

//false
isInstance(null);
isInstance(2);
isInstance('hello');
isInstance(undefined);
isInstance(NaN);

//true
isInstance({});
isInstance(function(){});
```

## Why

I've used this in 4 modules. time to get DRY.

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