# @billogram/is-instance-of

> > A function for determining if an object matches a specific type

Latest version **1.1.0** (published 2021-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @billogram/is-instance-of
pnpm add @billogram/is-instance-of
yarn add @billogram/is-instance-of
bun add @billogram/is-instance-of
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-07-27 |
| First published | 2020-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mrydengren, andreashogstrom, ewakosciukiewicz, miriamlarsson, choddan |

## Links

- npm: https://www.npmjs.com/package/@billogram/is-instance-of
- npm.io page: https://npm.io/package/@billogram/is-instance-of

## Recent versions

- 1.1.0 (latest) — 2021-07-27
- 1.0.1 — 2021-01-10
- 1.0.0 — 2020-01-20

## README

# @billogram/is-instance-of

> A function for determining if an object matches a specific type

## Install

```
yarn add @billogram/is-instance-of
```

## Usage

```ts
import isInstanceOf from '@billogram/is-instance-of';
```

### [`isInstanceOf`](src/isInstanceOf.ts)

```ts
interface Type {
    value: string;
}

const obj = { value: 'Cupcake ipsum dolor sit amet ice cream brownie' };

isInstanceOf<Type>(obj);
```

## Note

This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.

## License

MIT

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